package core:engine/sound

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    sound ¶

    sound :: struct {
    	src:       ^sound_src,
    	__private: sound_private,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    sound_error ¶

    sound_error :: miniaudio.result
    Related Procedures With Returns

    sound_format ¶

    sound_format :: miniaudio.format

    sound_src ¶

    sound_src :: struct {
    	format:         miniaudio.format,
    	channels:       u32,
    	sample_rate:    u32,
    	size_in_frames: u64,
    	decoder_config: miniaudio.decoder_config,
    	decoder:        miniaudio.decoder,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    get_len ¶

    get_len :: proc(self: ^sound) -> u64 {…}

    get_len_sec ¶

    get_len_sec :: proc(self: ^sound) -> f32 {…}

    get_pos ¶

    get_pos :: proc(self: ^sound) -> u64 {…}

    get_pos_sec ¶

    get_pos_sec :: proc(self: ^sound) -> f32 {…}

    is_looping ¶

    is_looping :: proc "contextless" (self: ^sound) -> bool {…}

    is_playing ¶

    is_playing :: proc "contextless" (self: ^sound) -> bool {…}

    pause ¶

    pause :: proc(self: ^sound) {…}

    resume ¶

    resume :: proc(self: ^sound) {…}

    set_looping ¶

    set_looping :: proc "contextless" (self: ^sound, loop: bool) {…}

    set_pitch ¶

    set_pitch :: proc "contextless" (self: ^sound, pitch: f32) {…}
     

    = playing speed

    set_pos ¶

    set_pos :: proc(self: ^sound, pos: u64) {…}

    set_pos_sec ¶

    set_pos_sec :: proc(self: ^sound, pos_sec: f32) -> bool {…}

    set_volume ¶

    set_volume :: proc "contextless" (self: ^sound, volume: f32) {…}

    sound_deinit ¶

    sound_deinit :: proc(self: ^sound) {…}
     

    Deinitializes and cleans up sound resources

    Inputs:
    self: Pointer to the sound to deinitialize

    Returns:
    None

    sound_src_decode_sound_memory ¶

    sound_src_decode_sound_memory :: proc(data: []u8) -> (result: ^sound_src, err: miniaudio.result) {…}

    sound_src_deinit ¶

    sound_src_deinit :: proc(self: ^sound_src) {…}
     

    Deinitializes a sound source and all sounds using it

    Inputs:
    self: Pointer to the sound source to deinitialize

    Returns:
    None

    sound_src_play_sound_memory ¶

    sound_src_play_sound_memory :: proc(self: ^sound_src, volume: f32, loop: bool) -> (snd: ^sound, err: miniaudio.result) {…}
     

    Plays a sound from memory using a sound source

    Inputs:
    self: Pointer to the sound source volume: Volume level (0.0 to 1.0) loop: Whether to loop the sound

    Returns:
    Pointer to the playing sound An error if playback failed

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-v0.0.1 (vendor "odin") Linux_amd64 @ 2026-01-30 10:23:15.887485900 +0000 UTC