Hi,
My goal is to read an encrypted file, decrypt it and play its content as a sound (the original file being an mp3 or m4a audio file). I want to avoid saving to a temporary file, so the data must stay in memory.
I’m stuck at playing the data. I’ve checked the MBS “PortAudio” examples, but they play only generated sounds or just-in-time recorded audio (not existing files). Trying anyway to fill the buffer of the examples with the data obtained from the decrypted file leads to random noise.
So I’m wondering: can PortAudio play mp3/m4a files (if so, how)?
Is there a better way I’m missing?
3 posts - 2 participants