Unverified Commit e45fe33c authored by Wolle's avatar Wolle Committed by GitHub

prepare for VORBIS

parent 538ab8d8
......@@ -4227,8 +4227,25 @@ void Audio::printDecodeError(int r) {
default: e = "ERR_UNKNOWN";
}
AUDIO_INFO("OPUS decode error %d : %s", r, e);
}
if(m_codec == CODEC_VORBIS){
switch(r){
case ERR_VORBIS_NONE: e = "NONE"; break;
case ERR_VORBIS_CHANNELS_OUT_OF_RANGE: e = "CHANNELS OUT OF RANGE"; break;
case ERR_VORBIS_INVALID_SAMPLERATE: e = "INVALID SAMPLERATE"; break;
case ERR_VORBIS_EXTRA_CHANNELS_UNSUPPORTED: e = "EXTRA CHANNELS UNSUPPORTED"; break;
case ERR_VORBIS_DECODER_ASYNC: e = "DECODER ASYNC"; break;
case ERR_VORBIS_OGG_SYNC_NOT_FOUND: e = "SYNC NOT FOUND"; break;
case ERR_VORBIS_BAD_HEADER: e = "BAD HEADER"; break;
case ERR_VORBIS_NOT_AUDIO: e = "NOT AUDIO"; break;
case ERR_VORBIS_BAD_PACKET: e = "BAD PACKET"; break;
default: e = "ERR_UNKNOWN";
}
AUDIO_INFO("VORBIS decode error %d : %s", r, e);
}
}
//---------------------------------------------------------------------------------------------------------------------
bool Audio::setPinout(uint8_t BCLK, uint8_t LRC, uint8_t DOUT, int8_t DIN, int8_t MCK) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment