sokol.audio

Machine generated D bindings for Sokol library.

Generated on: 2025-06-15 12:55:08

Source header: sokol_audio.h Module: sokol.audio

Do not edit manually; regenerate using gen_d.py.

Members

Enums

LogItem
enum LogItem
Undocumented in source.

Functions

bufferFrames
int bufferFrames()
Undocumented in source. Be warned that the author may not have intended to support it.
channels
int channels()
Undocumented in source. Be warned that the author may not have intended to support it.
expect
int expect()
Undocumented in source. Be warned that the author may not have intended to support it.
isvalid
bool isvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
push
int push(float* frames, int num_frames)
Undocumented in source. Be warned that the author may not have intended to support it.
queryDesc
Desc queryDesc()
Undocumented in source. Be warned that the author may not have intended to support it.
sampleRate
int sampleRate()
Undocumented in source. Be warned that the author may not have intended to support it.
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* frames, int num_frames)

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* 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)
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
suspended
bool suspended()
Undocumented in source. Be warned that the author may not have intended to support it.
userdata
void* userdata()
Undocumented in source. Be warned that the author may not have intended to support it.

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