odin_audio_mix_streams
Reads up to out_buffer_len
samples from the given streams and mixes them into the out_buffer
. All audio streams will
be read based on the sample rate you chose when initializing the ODIN runtime so make sure to allocate the buffer
accordingly. After the call the out_buffer_len
will contain the amount of samples that have actually been read and
mixed into out_buffer
.
If enabled this will also apply any audio processing to the output stream and feed back required data to the internal audio processing pipeline which requires a final mix.
Parameters
room
Handle of the room (see OdinRoomHandle
streams
Array of handles of the audio streams to be mixed. See OdinMediaStreamHandle
stream_count
Number of audio streams to be mixed.
out_buffer
Pointer to the buffer where the mixed audio data will be stored.
out_buffer_len
Length of the output audio data array.
Returns
A return code indicating success or failure.