package vendor:sdl2/mixer

⌘K
Ctrl+K
or
/

    Index

    Variables (0)

    This section is empty.

    Procedures (93)
    Procedure Groups (0)

    This section is empty.

    Types

    Chunk ¶

    Chunk :: struct {
    	allocated: i32,
    	abuf:      [^]u8,
    	alen:      u32,
    	volume:    u8,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    EffectDone_t ¶

    EffectDone_t :: proc "c" (chan: i32, udata: rawptr)
    Related Procedures With Parameters

    EffectFunc_t ¶

    EffectFunc_t :: proc "c" (chan: i32, stream: rawptr, len: i32, udata: rawptr)
    Related Procedures With Parameters

    Fading ¶

    Fading :: enum i32 {
    	NO_FADING, 
    	FADING_OUT, 
    	FADING_IN, 
    }
    Related Procedures With Returns
    Related Constants

    InitFlag ¶

    InitFlag :: enum i32 {
    	FLAC = 0, 
    	MOD  = 1, 
    	MP3  = 3, 
    	OGG  = 4, 
    	MID  = 5, 
    	OPUS = 6, 
    }

    InitFlags ¶

    InitFlags :: distinct bit_set[InitFlag; i32]
    Related Procedures With Parameters
    Related Constants

    MixFunc ¶

    MixFunc :: proc "c" (udata: rawptr, stream: [^]u8, len: i32)
    Related Procedures With Parameters

    MusicType ¶

    MusicType :: enum i32 {
    	NONE, 
    	CMD, 
    	WAV, 
    	MOD, 
    	MID, 
    	OGG, 
    	MP3, 
    	MP3_MAD_UNUSED, 
    	FLAC, 
    	MODPLUG_UNUSED, 
    	OPUS, 
    }
    Related Procedures With Parameters
    Related Procedures With Returns
    Related Constants

    bool ¶

    bool :: sdl2.bool

    Constants

    CHANNELS ¶

    CHANNELS :: 8

    CHANNEL_POST ¶

    CHANNEL_POST :: -2

    DEFAULT_CHANNELS ¶

    DEFAULT_CHANNELS :: 2

    DEFAULT_FORMAT ¶

    DEFAULT_FORMAT :: SDL.AUDIO_S16SYS

    DEFAULT_FREQUENCY ¶

    DEFAULT_FREQUENCY :: 44100

    EFFECTSMAXSPEED ¶

    EFFECTSMAXSPEED :: "MIX_EFFECTSMAXSPEED"

    FADING_IN ¶

    FADING_IN :: Fading.FADING_IN

    FADING_OUT ¶

    FADING_OUT :: Fading.FADING_OUT

    INIT_FLAC ¶

    INIT_FLAC :: InitFlags{.FLAC}

    INIT_MID ¶

    INIT_MID :: InitFlags{.MID}

    INIT_MOD ¶

    INIT_MOD :: InitFlags{.MOD}

    INIT_MP3 ¶

    INIT_MP3 :: InitFlags{.MP3}

    INIT_OGG ¶

    INIT_OGG :: InitFlags{.OGG}

    INIT_OPUS ¶

    INIT_OPUS :: InitFlags{.OPUS}

    MAJOR_VERSION ¶

    MAJOR_VERSION :: 2

    MAX_VOLUME ¶

    MAX_VOLUME :: SDL.MIX_MAXVOLUME

    MINOR_VERSION ¶

    MINOR_VERSION :: 0

    MUS_CMD ¶

    MUS_CMD :: MusicType.CMD

    MUS_FLAC ¶

    MUS_FLAC :: MusicType.FLAC

    MUS_MID ¶

    MUS_MID :: MusicType.MID

    MUS_MOD ¶

    MUS_MOD :: MusicType.MOD

    MUS_MODPLUG_UNUSED ¶

    MUS_MODPLUG_UNUSED :: MusicType.MODPLUG_UNUSED

    MUS_MP3 ¶

    MUS_MP3 :: MusicType.MP3

    MUS_MP3_MAD_UNUSED ¶

    MUS_MP3_MAD_UNUSED :: MusicType.MP3_MAD_UNUSED

    MUS_NONE ¶

    MUS_NONE :: MusicType.NONE

    MUS_OGG ¶

    MUS_OGG :: MusicType.OGG

    MUS_OPUS ¶

    MUS_OPUS :: MusicType.OPUS

    MUS_WAV ¶

    MUS_WAV :: MusicType.WAV

    NO_FADING ¶

    NO_FADING :: Fading.NO_FADING

    PATCHLEVEL ¶

    PATCHLEVEL :: 4

    Variables

    This section is empty.

    Procedures

    AllocateChannels ¶

    AllocateChannels :: proc "c" (numchans: i32) -> i32 ---

    ChannelFinished ¶

    ChannelFinished :: proc "c" (channel_finished: proc "c" (channel: i32)) ---

    CloseAudio ¶

    CloseAudio :: proc "c" () ---

    EachSoundFont ¶

    EachSoundFont :: proc "c" (function: proc "c" (cstring, rawptr) -> i32, data: rawptr) -> i32 ---

    ExpireChannel ¶

    ExpireChannel :: proc "c" (channel: i32, ticks: i32) -> i32 ---

    FadeInChannel ¶

    FadeInChannel :: proc "c" (channel: i32, chunk: ^Chunk, loops: i32, ms: i32) -> i32 {…}

    FadeInChannelTimed ¶

    FadeInChannelTimed :: proc "c" (channel: i32, chunk: ^Chunk, loops: i32, ms: i32, ticks: i32) -> i32 ---

    FadeInMusic ¶

    FadeInMusic :: proc "c" (music: ^Music, loops: i32, ms: i32) -> i32 ---

    FadeInMusicPos ¶

    FadeInMusicPos :: proc "c" (music: ^Music, loops: i32, ms: i32, position: f64) -> i32 ---

    FadeOutChannel ¶

    FadeOutChannel :: proc "c" (which: i32, ms: i32) -> i32 ---

    FadeOutGroup ¶

    FadeOutGroup :: proc "c" (tag: i32, ms: i32) -> i32 ---

    FadeOutMusic ¶

    FadeOutMusic :: proc "c" (ms: i32) -> i32 ---

    FadingChannel ¶

    FadingChannel :: proc "c" (which: i32) -> Fading ---

    FadingMusic ¶

    FadingMusic :: proc "c" () -> Fading ---

    FreeChunk ¶

    FreeChunk :: proc "c" (chunk: ^Chunk) ---

    FreeMusic ¶

    FreeMusic :: proc "c" (music: ^Music) ---

    GetChunk ¶

    GetChunk :: proc "c" (channel: i32) -> ^Chunk ---

    GetChunkDecoder ¶

    GetChunkDecoder :: proc "c" (index: i32) -> cstring ---

    GetMusicAlbumTag ¶

    GetMusicAlbumTag :: proc "c" (music: ^Music) -> cstring ---

    GetMusicArtistTag ¶

    GetMusicArtistTag :: proc "c" (music: ^Music) -> cstring ---

    GetMusicCopyrightTag ¶

    GetMusicCopyrightTag :: proc "c" (music: ^Music) -> cstring ---

    GetMusicDecoder ¶

    GetMusicDecoder :: proc "c" (index: i32) -> cstring ---

    GetMusicHookData ¶

    GetMusicHookData :: proc "c" () -> rawptr ---

    GetMusicLoopEndTime ¶

    GetMusicLoopEndTime :: proc "c" (music: ^Music) -> f64 ---

    GetMusicLoopLengthTime ¶

    GetMusicLoopLengthTime :: proc "c" (music: ^Music) -> f64 ---

    GetMusicLoopStartTime ¶

    GetMusicLoopStartTime :: proc "c" (music: ^Music) -> f64 ---

    GetMusicPosition ¶

    GetMusicPosition :: proc "c" (music: ^Music) -> f64 ---

    GetMusicTitle ¶

    GetMusicTitle :: proc "c" (music: ^Music) -> cstring ---

    GetMusicTitleTag ¶

    GetMusicTitleTag :: proc "c" (music: ^Music) -> cstring ---

    GetMusicType ¶

    GetMusicType :: proc "c" (music: ^Music) -> MusicType ---

    GetMusicVolume ¶

    GetMusicVolume :: proc "c" (music: ^Music) -> i32 ---

    GetNumChunkDecoders ¶

    GetNumChunkDecoders :: proc "c" () -> i32 ---

    GetNumMusicDecoders ¶

    GetNumMusicDecoders :: proc "c" () -> i32 ---

    GetSoundFonts ¶

    GetSoundFonts :: proc "c" () -> cstring ---

    GetSynchroValue ¶

    GetSynchroValue :: proc "c" () -> i32 ---

    GetTimidityCfg ¶

    GetTimidityCfg :: proc "c" () -> cstring ---

    GroupAvailable ¶

    GroupAvailable :: proc "c" (tag: i32) -> i32 ---

    GroupChannel ¶

    GroupChannel :: proc "c" (which: i32, tag: i32) -> i32 ---

    GroupChannels ¶

    GroupChannels :: proc "c" (from, to: i32, tag: i32) -> i32 ---

    GroupCount ¶

    GroupCount :: proc "c" (tag: i32) -> i32 ---

    GroupNewer ¶

    GroupNewer :: proc "c" (tag: i32) -> i32 ---

    GroupOldest ¶

    GroupOldest :: proc "c" (tag: i32) -> i32 ---

    HaltChannel ¶

    HaltChannel :: proc "c" (channel: i32) -> i32 ---

    HaltGroup ¶

    HaltGroup :: proc "c" (tag: i32) -> i32 ---

    HaltMusic ¶

    HaltMusic :: proc "c" () -> i32 ---

    HasChunkDecoder ¶

    HasChunkDecoder :: proc "c" (name: cstring) -> sdl2.bool ---

    HasMusicDecoder ¶

    HasMusicDecoder :: proc "c" (name: cstring) -> sdl2.bool ---

    HookMusic ¶

    HookMusic :: proc "c" (mix_func: MixFunc, arg: rawptr) ---

    HookMusicFinished ¶

    HookMusicFinished :: proc "c" (music_finished: proc "c" ()) ---

    Init ¶

    Init :: proc "c" (flags: InitFlags) -> i32 ---

    Linked_Version ¶

    Linked_Version :: proc "c" () -> ^sdl2.version ---

    LoadMUS ¶

    LoadMUS :: proc "c" (file: cstring) -> ^Music ---

    LoadMUSType_RW ¶

    LoadMUSType_RW :: proc "c" (src: ^sdl2.RWops, type: MusicType, freesrc: sdl2.bool) -> ^Music ---

    LoadMUS_RW ¶

    LoadMUS_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool) -> ^Music ---

    LoadWAV ¶

    LoadWAV :: proc "c" (file: cstring) -> ^Chunk {…}

    LoadWAV_RW ¶

    LoadWAV_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool) -> ^Chunk ---

    ModMusicJumpToOrder ¶

    ModMusicJumpToOrder :: proc "c" (order: i32) -> i32 ---

    MusicDuration ¶

    MusicDuration :: proc "c" (music: ^Music) -> f64 ---

    OpenAudio ¶

    OpenAudio :: proc "c" (frequency: i32, format: u16, channels: i32, chunksize: i32) -> i32 ---

    OpenAudioDevice ¶

    OpenAudioDevice :: proc "c" (
    	frequency:       i32, 
    	format:          u16, 
    	channels:        i32, 
    	chunksize:       i32, 
    	device:          cstring, 
    	allowed_changed: i32, 
    ) -> i32 ---

    Pause ¶

    Pause :: proc "c" (channel: i32) ---

    PauseMusic ¶

    PauseMusic :: proc "c" () ---

    Paused ¶

    Paused :: proc "c" (channel: i32) -> i32 ---

    PausedMusic ¶

    PausedMusic :: proc "c" () -> i32 ---

    PlayChannel ¶

    PlayChannel :: proc "c" (channel: i32, chunk: ^Chunk, loops: i32) -> i32 {…}

    PlayChannelTimed ¶

    PlayChannelTimed :: proc "c" (channel: i32, chunk: ^Chunk, loops: i32, ticks: i32) -> i32 ---

    PlayMusic ¶

    PlayMusic :: proc "c" (music: ^Music, loops: i32) -> i32 ---

    Playing ¶

    Playing :: proc "c" (channel: i32) -> i32 ---

    PlayingMusic ¶

    PlayingMusic :: proc "c" () -> i32 ---

    QuerySpec ¶

    QuerySpec :: proc "c" (frequency: ^i32, format: ^u16, channels: ^i32) -> i32 ---

    QuickLoad_RAW ¶

    QuickLoad_RAW :: proc "c" (mem: [^]u8, len: u32) -> ^Chunk ---

    QuickLoad_WAV ¶

    QuickLoad_WAV :: proc "c" (mem: [^]u8) -> ^Chunk ---

    Quit ¶

    Quit :: proc "c" () ---

    RegisterEffect ¶

    RegisterEffect :: proc "c" (chan: i32, f: EffectFunc_t, d: EffectDone_t, arg: rawptr) -> i32 ---

    ReserveChannels ¶

    ReserveChannels :: proc "c" (num: i32) -> i32 ---

    Resume ¶

    Resume :: proc "c" (channel: i32) ---

    ResumeMusic ¶

    ResumeMusic :: proc "c" () ---

    RewindMusic ¶

    RewindMusic :: proc "c" () ---

    SetDistance ¶

    SetDistance :: proc "c" (channel: i32, distance: u8) -> i32 ---

    SetMusicCMD ¶

    SetMusicCMD :: proc "c" (command: cstring) -> i32 ---

    SetMusicPosition ¶

    SetMusicPosition :: proc "c" (position: f64) -> i32 ---

    SetPanning ¶

    SetPanning :: proc "c" (channel: i32, left, right: u8) -> i32 ---

    SetPosition ¶

    SetPosition :: proc "c" (channel: i32, angle: i16, distance: u8) -> i32 ---

    SetPostMix ¶

    SetPostMix :: proc "c" (mix_func: MixFunc, arg: rawptr) ---

    SetReverseStereo ¶

    SetReverseStereo :: proc "c" (channel: i32, flip: sdl2.bool) -> i32 ---

    SetSoundFonts ¶

    SetSoundFonts :: proc "c" (paths: cstring) -> i32 ---

    SetSynchroValue ¶

    SetSynchroValue :: proc "c" (value: i32) -> i32 ---

    SetTimidityCfg ¶

    SetTimidityCfg :: proc "c" (path: cstring) -> i32 ---

    UnregisterAllEffects ¶

    UnregisterAllEffects :: proc "c" (channel: i32) -> i32 ---

    UnregisterEffect ¶

    UnregisterEffect :: proc "c" (channel: i32, f: EffectFunc_t) -> i32 ---

    Volume ¶

    Volume :: proc "c" (channel: i32, volume: i32) -> i32 ---

    VolumeChunk ¶

    VolumeChunk :: proc "c" (chunk: ^Chunk, volume: i32) -> i32 ---

    VolumeMusic ¶

    VolumeMusic :: proc "c" (volume: i32) -> i32 ---

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-21 21:10:08.157503900 +0000 UTC