odin_audio_set_stream_delay
Sets the delay estimate for the reverse stream used in the ODIN echo cancellation. This function is important in scenarios where the audio output and the audio input are not synchronized. An accurate delay value ensures that the echo canceller can correctly align the two audio streams, resulting in effective echo cancellation.
Improper delay values may lead to poor echo cancellation and thus degrade the quality of the audio communication.
Parameters
room
Handle of the room to which the streams belong. See OdinRoomHandle
delay_ms
The delay estimate in milliseconds. This value should be set to the estimated delay between the audio output and the audio input. The delay estimate should be as accurate as possible to ensure effective echo cancellation.
Returns
A return code indicating success or failure.