Chaining Mozzi #1462
-
Hi Phil and all, I would like to use Mozzi in a chain. In its simples form this would combine the input and the output example. In my case I want to build the following chain: Read file from SD -> Decode MP3 -> Convert (44100,2,16) to (16000,1,16) -> process with Mozzi -> Output to I2s (Audio-kit board) I have build this in the following sketch. The first part works nicely. I can send the output of the converter to CSV or I2S to see or hear the mono output. But when I send it to Mozzi nothing happens. How can I have Mozzi propagate the results to I2S (or CSV for viewing) ?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your input chain should be theoretically: EncodedAudioStream mp3dec(&file,&mp3); // you intend to read the decoded file Then you can read the converted, decoded data using conv |
Beta Was this translation helpful? Give feedback.
Your input chain should be theoretically:
EncodedAudioStream mp3dec(&file,&mp3); // you intend to read the decoded file
FormatConverterStream conv(mp3dec); // you intent to read converted data from the mp3dec
Then you can read the converted, decoded data using conv
Since the file is not known at that point of time, you will need to define it in setup by calling setInput(&file);