According to my scheme, VS1053 receives a signal from ESP32 via I2S - it works, everything is fine.
I want to add an FM receiver to the circuit and transmit the signal to the microphone input in stereo.
How to disable - stop receiving a signal from I2S and start receiving a signal from a microphone input?
The algorithm should be like this:
1. Do we work with web radio?
Yes -> continue to transfer data.
No -> We switched to FM radio ?
Yes -> Stop I2S stream, switch to mic input, start processing.
No -> Show the status on the screen.
I am attaching the diagram.
Alan Sbor.
Attachments
VS1053 multiplexor.jpg (254.58 KiB) Viewed 1429 times
Two options:
1) Switch to encoding mode. You get the ADC monitoring through the analog output, but you don't need to read out the encoded data.
2) Use the VS1053b ADMixer plugin to mix the ADC input(s) to the decoded signal. If you don't want both at the same time, stop sending the data to decode (so the decoder stops its output), use the pause mode (vs1053b-patches), or reduce the volume to the decoded audio from SCI_VOL (but don't turn volume so low that analog would be powered off).