How to change decoder on fly with EncodedAudioStream? #646
-
Hi, Phil: I'm trying to play different format audio file with EncodedAudioStream, Here is the declare of my sketch: A2DPStream a2dp; but it seems there is not a method to change decoder on fly, How can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think the best is to declare a separate EncodedAudioStream for each decoder and switch the output dynamically in the copier. For details I suggest to have a look at the class documentation of StreamCopy |
Beta Was this translation helpful? Give feedback.
I think the best is to declare a separate EncodedAudioStream for each decoder and switch the output dynamically in the copier. For details I suggest to have a look at the class documentation of StreamCopy