Audio mixing from 2 channels #1313
-
Does oboe support audio mixing? An app I am working on has the following use case -
I need to combine these 2 audio streams into one and then transmit it onto a channel. That the transmitting part has been taken care of what left is just the audio mixing part. I was wondering whether the oboe supports this feature? Forgive me for labeling it as a bug (it's more of a query), did it by mistake and now I can't find the option to change it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The Oboe core codebase does not include any mixing functionality, however, mixing is pretty simple and is demonstrated in some of the samples using the shared
It sounds like a karaoke app where the user listens to a song through headphones and sings into the microphone to create a voice recording. The voice recording is then mixed with the original song. If that's the use case then it's pretty simple. You need an output stream to play the song, and an input stream to record the microphone. Once the song is finished, iterate through the recording, mixing it with the original song, taking into account any latency offset. |
Beta Was this translation helpful? Give feedback.
The Oboe core codebase does not include any mixing functionality, however, mixing is pretty simple and is demonstrated in some of the samples using the shared
Mixer
class. Example usage here.It sounds like a karaoke app where the user listens to a song through headphones and sings into the microphone to create a voice recording. The voice recording is then mixed with the original song.
If that's the use case then it's pretty simple. You need an output stream to play the song, and an input stream to record the microphone. Once the song is finished, iterate through the recording, mixing it with the or…