Skip to main content

odin_audio_push_data

Sends data to the audio stream. The data has to be interleaved [-1, 1] float data.

info

See our minimal example for an example of how to use this function.

Declaration
OdinReturnCode odin_audio_push_data(OdinMediaStreamHandle stream, const float *buf, size_t buf_len);

Parameters

stream

Handle of the audio stream to which the data is to be sent.

Declaration
OdinMediaStreamHandle stream;

buf

Pointer to the audio data to be sent.

Declaration
const float *buf;

buf_len

Length of the audio data array.

Declaration
size_t buf_len;

Returns

A return code indicating success or failure.

Return Type
OdinReturnCode