Dan Halbert 59b89fdc5c Fix various audio DMA issues:
RP2040 and SAMD51:
- Detect when DMA has finished, and stop DMA audio explicitly.
- Do not accidentally reuse `first_buffer` supplied by WaveFile or RawSample. Always realloc `first_buffer` and `second_buffer`

RP2040:
- When audio playing is stopped, write a final zero to the output register. This prevents residual PWM tones.
- Handle buffer size for 8-bit samples properly for 16-bit output.
- Fail on some edge cases (which may not be possible at the moment).
2021-08-09 09:47:13 -04:00
..
2021-03-15 19:27:36 +05:30
2021-07-12 20:33:42 -04:00
2021-08-09 09:47:13 -04:00
2021-04-30 10:48:08 -05:00
2020-07-06 19:16:25 +01:00
2021-07-20 17:15:19 -07:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00
2021-05-14 16:14:24 -07:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00
2021-04-30 10:48:08 -05:00