|
@ -143,8 +143,12 @@ void MP3::mp3_decoder_task(void *pvParameters) { |
|
|
audiobuffer = buff; |
|
|
audiobuffer = buff; |
|
|
buff->RegisterStatusCB(StatusCallback, (void*)"buffer"); |
|
|
buff->RegisterStatusCB(StatusCallback, (void*)"buffer"); |
|
|
if (out == NULL) { |
|
|
if (out == NULL) { |
|
|
out = new AudioOutputI2S(I2S_NUM_0, false); |
|
|
out = new AudioOutputI2S(I2S_NUM_0, AudioOutputI2S::EXTERNAL_I2S, AudioOutputI2S::APLL_DISABLE); |
|
|
out->SetPinout(12, 13, 25); |
|
|
out->SetPinout(12, 13, 25); |
|
|
|
|
|
//out->SetRate(44100);
|
|
|
|
|
|
//out->SetBitsPerSample(I2S_BITS_PER_SAMPLE_16BIT);
|
|
|
|
|
|
//out->SetChannels(I2S_CHANNEL_STEREO);
|
|
|
|
|
|
//out->SetOutputModeMono(true);
|
|
|
} |
|
|
} |
|
|
if (rtttl_len > 0) { |
|
|
if (rtttl_len > 0) { |
|
|
decoder = new AudioGeneratorRTTTL(); |
|
|
decoder = new AudioGeneratorRTTTL(); |
|
|