circuitpython/ports
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
..
atmel-samd address review 2024-09-29 22:37:11 -04:00
broadcom Fix gcc version on broadcom again 2024-11-01 15:04:11 -05:00
cxd56 address review 2024-09-29 22:37:11 -04:00
espressif turn off CONFIG_ESP_SYSTEM_HW_STACK_GUARD for all builds 2024-10-23 13:43:23 -04:00
litex these ports currently use older gcc versions 2024-11-01 14:22:20 -05:00
mimxrt10xx address review 2024-09-29 22:37:11 -04:00
nordic improve _bleio.Connection.bind() doc, validation, and error messages 2024-10-18 19:29:54 -04:00
raspberrypi Merge pull request #9783 from dhalbert/rp2350-nvm-write-flush-cache 2024-11-02 13:00:35 -04:00
renode Avoid crashing when display components are deinitialized 2024-08-28 09:44:02 -05:00
silabs address review 2024-09-29 22:37:11 -04:00
stm more meowbit disabling and fix typo 2024-10-27 10:12:23 -04:00
unix Add audiodelays & audioeffects to unix coverage port 2024-11-05 09:36:18 -06:00