MP3 test in Valgrind

Run a host MP3 test using valgrind, shows no errors.
This commit is contained in:
Earle F. Philhower, III committed 2018-01-19 21:23:17 -08:00
1 parent cffb424c2c
commit 0172f17b51
6 files changed
+17 -2

No files matched your search

+2
View File
@@ -203,6 +203,8 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
Serial.printf_P(PSTR("MP3 source file not open\n"));
return false; // Error
}
output->SetBitsPerSample(16);
output->SetChannels(2);
if (!output->begin()) return false;
// Where we are in generating one frame's data, set to invalid so we will run loop on first getsample()