AudioPlayer: Switch from MP3 to AAC decoder #1615
-
Hello, I try to use the audioPlayer class to read an AAC stream and next a MP3 stream : const char *liste[] = { "http://icecast.radiofrance.fr/fip-hifi.aac","http://radiobonheur.ice.infomaniak.ch/radiobonheur-128-1.mp3" }; I first declare the two decoders and start initialyse the player with th AAC decoder : MP3DecoderHelix decomp3; In the loop section I catch an interruption to switch to the next stream (mp3) and so set the decoder to MP3: player.setDecoder(decomp3); I think I am missing something because the first AAC stream play well but when switching to the other I get : l_ibhelix - CommonHelix not active |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
'CommonHelix not active' indicates that it has not been opened yet: I would expect that you would need to call begin() |
Beta Was this translation helpful? Give feedback.
'CommonHelix not active' indicates that it has not been opened yet: I would expect that you would need to call begin()