sokol.audio

Undocumented in source.

Members

Enums

LogItem
enum LogItem
Undocumented in source.

Functions

bufferFrames
int bufferFrames()

return actual backend buffer size in number of frames

channels
int channels()

actual number of channels

expect
int expect()

get current number of frames to fill packet queue

isvalid
bool isvalid()

true after setup if audio backend was successfully initialized

push
int push(float* frames, int num_frames)

push sample frames from main thread, returns number of frames actually pushed

queryDesc
Desc queryDesc()

return a copy of the original saudio_desc struct

sampleRate
int sampleRate()

actual sample rate

saudio_buffer_frames
int saudio_buffer_frames()

return actual backend buffer size in number of frames

saudio_channels
int saudio_channels()

actual number of channels

saudio_expect
int saudio_expect()

get current number of frames to fill packet queue

saudio_isvalid
bool saudio_isvalid()

true after setup if audio backend was successfully initialized

saudio_push
int saudio_push(float* , int )

push sample frames from main thread, returns number of frames actually pushed

saudio_query_desc
Desc saudio_query_desc()

return a copy of the original saudio_desc struct

saudio_sample_rate
int saudio_sample_rate()

actual sample rate

saudio_setup
void saudio_setup(Desc* )

setup sokol-audio

saudio_shutdown
void saudio_shutdown()

shutdown sokol-audio

saudio_suspended
bool saudio_suspended()

return true if audio context is currently suspended (only in WebAudio backend, all other backends return false)

saudio_userdata
void* saudio_userdata()

return the saudio_desc.user_data pointer

setup
void setup(Desc desc)

setup sokol-audio

shutdown
void shutdown()

shutdown sokol-audio

suspended
bool suspended()

return true if audio context is currently suspended (only in WebAudio backend, all other backends return false)

userdata
void* userdata()

return the saudio_desc.user_data pointer

Structs

Allocator
struct Allocator

saudio_allocator

Desc
struct Desc
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Logger
struct Logger

saudio_logger

Meta