Skip to main content

odin_startup_ex

Initializes the internal ODIN client runtime, permitting the specification of sample rate and channel layout for audio output. This operation is ref-counted, necessitating paired invocations of startup and shutdown within your application.

info

Ensure consistent settings are used on successive invocations of this function.

Declaration
bool odin_startup_ex(const char *version, struct OdinAudioStreamConfig output_config);

Parameters

version

ODIN version string. Use ODIN_VERSION to supply this argument.

Declaration
const char *version;

output_config

Configuration for the audio output stream. See

OdinAudioStreamConfig

for details.

Declaration
struct OdinAudioStreamConfig output_config;

Returns

true if the operation was successful, otherwise false.

Return Type
bool