* dac_additive: Decouple the buffer length from the waveform length
* Formatting changes for the previous commit
* Reformat waveform tables with rows of 16 entries, ending at column 116
* Revert "Reformat waveform tables with rows of 16 entries, ending at column 116"
This reverts commit 6f2d37908d.
Previously, if the user tried to use `#define AUDIO_MAX_SIMULTANEOUS_TONES 1` to conserve CPU time, their firmware would fail to build with this error:
```
platforms/chibios/drivers/audio_dac_additive.c:91:73: error: excess elements in array initializer [-Werror]
91 | static float active_tones_snapshot[AUDIO_MAX_SIMULTANEOUS_TONES] = {0, 0};
| ^
```
This also affected the preset `#define AUDIO_DAC_QUALITY_VERY_HIGH`, which called up only one simultaneous tone at 88200 Hz.
* Move Audio drivers from quantum to platform drivers folder
* fix path for audio drivers
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
2021-10-06 12:01:45 +11:00
Renamed from quantum/audio/driver_chibios_dac_additive.c (Browse further)