Mix Audio?
Hi is it possible to play or mix audio from a file during a session?
Also wondering the same thing. Would you need to create a new source which pulls audio from some file and then feeds it into the AudioMixer somehow?
The audio mixer can take multiple sources of audio if you have a source other than the microphone to mix in it will work. For best results I would recommend keeping the mic and other sources at the same sampling rate to avoid sample rate conversion.
You'll need to pass in PCM data by the way - so if your audio is compressed you'll have to decompress it via whatever codec and then pass the raw PCM into the mixer.
@jgh- Thank you for your reply, can you please share a gist/sample that will show the right places /hooks to feed additional audio source into the audio mixer?
Sorry for the slow reply - it would basically be exactly the same as adding the Mic source if you look at the VCSimpleSession code.
@jgh- @KCastiglione I according to you said method adds a source, but mixer voice is all noise