circuitpython/shared-module
Jeff Epler f8afdcb729 Add audiodelays & audioeffects to unix coverage port
.. and add a very basic audioeffects test, showing that it plausibly
is working

I had to address several build errors that occurred in the Unix build,
mostly related to conversion from FP types to integral types (replaced
by explicit casts) and by
accidental mixing of regular & f-suffixed floating constants (replaced
with the MICROPY_FLOAT_CONST macro)

Particularly this change could use consideration:
```diff
-    self->max_echo_buffer_len = self->sample_rate / 1000.0f * max_delay_ms * (self->channel_count * sizeof(uint16_t)); // bytes
+    self->max_echo_buffer_len = (uint32_t)(self->sample_rate / 1000.0f * max_delay_ms) * (self->channel_count * sizeof(uint16_t)); // bytes
```

The buffer length is being calculated in floating point based on the
millisecond delay & the sample rate. The result could then be a fractional
number such as 529.2 for a 12ms delay at 44.1kHz. Multiplying a floating
number by the size required for each echo buffer item
(`(self->channel_count * sizeof(uint16_t))`) could yield a number of bytes
that doesn't correspond to an integral number of buffer items. I grouped
the float->int conversion so that it converts the number of echo buffer
items to an integer and then multiplies by the size of the item.
2024-11-05 09:36:18 -06:00
..
_bleio guard2once -s ... 2024-05-19 20:40:44 -04:00
_eve Extend EVE hardware opcodes for future-compatibility 2024-09-06 10:53:05 -07:00
_pixelmap update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
_stage guard2once -s ... 2024-05-19 20:40:44 -04:00
adafruit_bus_device espressif: get new I2C driver working 2024-09-20 17:48:17 -04:00
adafruit_pixelbuf adafruit_pixelbuf: Allow the buffer to be written in _transmit 2024-10-18 13:01:24 -05:00
aesio guard2once -s ... 2024-05-19 20:40:44 -04:00
atexit guard2once -s ... 2024-05-19 20:40:44 -04:00
audiocore remove dead code 2024-07-17 13:18:00 -07:00
audiodelays Add audiodelays & audioeffects to unix coverage port 2024-11-05 09:36:18 -06:00
audiofilters Add audiodelays & audioeffects to unix coverage port 2024-11-05 09:36:18 -06:00
audioio guard2once -s ... 2024-05-19 20:40:44 -04:00
audiomixer Removed utils.h which was not required 2024-10-05 18:03:03 -05:00
audiomp3 Fix infinite loop when there's a partial frame at the end of the file. 2024-09-23 16:46:20 -04:00
audiopwmio guard2once -s ... 2024-05-19 20:40:44 -04:00
aurora_epaper Remove unique error messages 2024-08-13 09:41:23 -07:00
bitbangio CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
bitmapfilter add #pragma once to all CircuitPython header files without any include guards 2024-05-19 20:38:07 -04:00
bitmaptools CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
bitops update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
board Pervasive Displays Aurora E-paper driver 2024-06-05 20:00:45 -04:00
busdisplay CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
canio update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
displayio Switch to IDF 5.2 I2C API 2024-09-19 14:47:45 -04:00
dotclockframebuffer update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
epaperdisplay epaperdisplay: fix delay when two_byte_sequence_length is true 2024-10-08 09:03:08 +02:00
floppyio update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
fontio guard2once -s ... 2024-05-19 20:40:44 -04:00
fourwire update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
framebufferio CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
getpass guard2once -s ... 2024-05-19 20:40:44 -04:00
gifio guard2once -s ... 2024-05-19 20:40:44 -04:00
hashlib update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
i2cdisplaybus update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
imagecapture update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
ipaddress guard2once -s ... 2024-05-19 20:40:44 -04:00
is31fl3741 add #pragma once to all CircuitPython header files without any include guards 2024-05-19 20:38:07 -04:00
jpegio add #pragma once to all CircuitPython header files without any include guards 2024-05-19 20:38:07 -04:00
keypad Update KeyMatrix.c: remove trailing spaces 2024-09-26 18:42:35 -04:00
keypad_demux guard2once -s ... 2024-05-19 20:40:44 -04:00
max3421e update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
memorymonitor guard2once -s ... 2024-05-19 20:40:44 -04:00
msgpack CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
onewireio guard2once -s ... 2024-05-19 20:40:44 -04:00
os CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
paralleldisplaybus update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
qrio CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
rainbowio update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
random CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
rgbmatrix CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
rotaryio update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
sdcardio esp32s3: Implement sdioio 2024-09-18 17:37:59 -04:00
sharpdisplay CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
ssl working on compilation errors 2024-09-06 23:10:41 -04:00
storage Reboot to normal mode upon fs wipe 2024-11-03 19:39:31 +02:00
struct CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
supervisor guard2once -s ... 2024-05-19 20:40:44 -04:00
synthio Make conversion of mp_float_t to uint32_t for waveform_loop values explicit. 2024-11-04 08:13:17 -06:00
terminalio wip: fixing compilation 2024-07-26 18:38:46 -04:00
time update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
touchio guard2once -s ... 2024-05-19 20:40:44 -04:00
traceback guard2once -s ... 2024-05-19 20:40:44 -04:00
uheap update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
usb revert usb.core.Device error message changes 2024-10-07 17:50:22 +00:00
usb_cdc guard2once -s ... 2024-05-19 20:40:44 -04:00
usb_hid shared-module/usb_hid/Device.c: update tud_hid_set_report_cb() 2024-06-10 18:19:27 -04:00
usb_midi guard2once -s ... 2024-05-19 20:40:44 -04:00
usb_video CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
ustack update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
vectorio guard2once -s ... 2024-05-19 20:40:44 -04:00
warnings update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
watchdog guard2once -s ... 2024-05-19 20:40:44 -04:00
zlib update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00