Remove 8-bit handling in output, promote WAV/FLAC to 16 (#782)

Only the WAV and FLAC generators can generate 8-bit values, so it is
more efficient and sane to just have those generators upscale to 16-bit
signed (if necessary) in generation and simplify all the other
Generators and Outputs.
This commit is contained in:
Earle F. Philhower, III authored and GitHub committed 2025-10-13 09:56:39 -07:00
1 parent 724b6d606e
commit 058e131b26
29 files changed
+43 -163

No files matched your search

-4
View File
@@ -211,10 +211,6 @@ bool AudioGeneratorAAC::begin(AudioFileSource *source, AudioOutput *output) {
output->begin();
// AAC always comes out at 16 bits
output->SetBitsPerSample(16);
memset(buff, 0, buffLen);
memset(outSample, 0, 1024 * 2 * sizeof(int16_t));