package vendor:sdl2/mixer

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,
}

EffectDone_t ¶

EffectDone_t :: proc "cdecl" (jid: i32, pointer: rawptr)

EffectFunc_t ¶

EffectFunc_t :: proc "cdecl" (chan: i32, stream: rawptr, len: i32, udata: rawptr)

Fading ¶

Fading :: enum i32 {
	NO_FADING, 
	FADING_OUT, 
	FADING_IN, 
}

InitFlag ¶

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

InitFlags ¶

InitFlags :: distinct bit_set[InitFlag; i32]

MixFunc ¶

MixFunc :: proc "cdecl" (userdata: rawptr, stream: [^]u8, len: i32)

Music ¶

Music :: struct {}

MusicType ¶

MusicType :: enum i32 {
	NONE, 
	CMD, 
	WAV, 
	MOD, 
	MID, 
	OGG, 
	MP3, 
	MP3_MAD_UNUSED, 
	FLAC, 
	MODPLUG_UNUSED, 
	OPUS, 
}

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 "cdecl" (channel: i32) -> i32 ---

ChannelFinished ¶

ChannelFinished :: proc "cdecl" (channel_finished: proc "cdecl" (interval: i32)) ---

CloseAudio ¶

CloseAudio :: proc "cdecl" () ---

EachSoundFont ¶

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

ExpireChannel ¶

ExpireChannel :: proc "cdecl" (x, y: i32) -> i32 ---

FadeInChannelTimed ¶

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

FadeInChannel ¶

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

FadeInMusicPos ¶

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

FadeInMusic ¶

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

FadeOutChannel ¶

FadeOutChannel :: proc "cdecl" (x, y: i32) -> i32 ---

FadeOutGroup ¶

FadeOutGroup :: proc "cdecl" (x, y: i32) -> i32 ---

FadeOutMusic ¶

FadeOutMusic :: proc "cdecl" (channel: i32) -> i32 ---

FadingChannel ¶

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

FadingMusic ¶

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

FreeChunk ¶

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

FreeMusic ¶

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

GetChunk ¶

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

GetChunkDecoder ¶

GetChunkDecoder :: proc "cdecl" (joy: i32) -> cstring ---

GetMusicAlbumTag ¶

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

GetMusicArtistTag ¶

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

GetMusicCopyrightTag ¶

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

GetMusicDecoder ¶

GetMusicDecoder :: proc "cdecl" (joy: i32) -> cstring ---

GetMusicHookData ¶

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

GetMusicLoopEndTime ¶

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

GetMusicLoopLengthTime ¶

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

GetMusicLoopStartTime ¶

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

GetMusicPosition ¶

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

GetMusicTitleTag ¶

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

GetMusicTitle ¶

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

GetMusicType ¶

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

GetMusicVolume ¶

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

GetNumChunkDecoders ¶

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

GetNumMusicDecoders ¶

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

GetSoundFonts ¶

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

GetSynchroValue ¶

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

GetTimidityCfg ¶

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

GroupAvailable ¶

GroupAvailable :: proc "cdecl" (channel: i32) -> i32 ---

GroupChannels ¶

GroupChannels :: proc "cdecl" (x, y, z: i32) -> i32 ---

GroupChannel ¶

GroupChannel :: proc "cdecl" (x, y: i32) -> i32 ---

GroupCount ¶

GroupCount :: proc "cdecl" (channel: i32) -> i32 ---

GroupNewer ¶

GroupNewer :: proc "cdecl" (channel: i32) -> i32 ---

GroupOldest ¶

GroupOldest :: proc "cdecl" (channel: i32) -> i32 ---

HaltChannel ¶

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

HaltGroup ¶

HaltGroup :: proc "cdecl" (channel: i32) -> i32 ---

HaltMusic ¶

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

HasChunkDecoder ¶

HasChunkDecoder :: proc "cdecl" (permission: cstring) -> sdl2.bool ---

HasMusicDecoder ¶

HasMusicDecoder :: proc "cdecl" (permission: cstring) -> sdl2.bool ---

HookMusicFinished ¶

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

HookMusic ¶

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

Init ¶

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

Linked_Version ¶

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

LoadMUS ¶

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

LoadMUSType_RW ¶

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

LoadMUS_RW ¶

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

LoadWAV_RW ¶

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

LoadWAV ¶

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

ModMusicJumpToOrder ¶

ModMusicJumpToOrder :: proc "cdecl" (channel: i32) -> i32 ---

MusicDuration ¶

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

OpenAudioDevice ¶

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

OpenAudio ¶

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

Pause ¶

Pause :: proc "cdecl" (interval: i32) ---

PauseMusic ¶

PauseMusic :: proc "cdecl" () ---

Paused ¶

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

PausedMusic ¶

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

PlayChannel ¶

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

PlayChannelTimed ¶

PlayChannelTimed :: proc "cdecl" (channel: i32, chunk: ^Chunk, loops: i32, ms: i32) -> i32 ---

PlayMusic ¶

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

PlayingMusic ¶

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

Playing ¶

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

QuerySpec ¶

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

QuickLoad_RAW ¶

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

QuickLoad_WAV ¶

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

Quit ¶

Quit :: proc "cdecl" () ---

RegisterEffect ¶

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

ReserveChannels ¶

ReserveChannels :: proc "cdecl" (channel: i32) -> i32 ---

Resume ¶

Resume :: proc "cdecl" (interval: i32) ---

ResumeMusic ¶

ResumeMusic :: proc "cdecl" () ---

RewindMusic ¶

RewindMusic :: proc "cdecl" () ---

SetDistance ¶

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

SetMusicCMD ¶

SetMusicCMD :: proc "cdecl" (str: cstring) -> i32 ---

SetMusicPosition ¶

SetMusicPosition :: proc "cdecl" (v: f64) -> i32 ---

SetPanning ¶

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

SetPosition ¶

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

SetPostMix ¶

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

SetReverseStereo ¶

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

SetSoundFonts ¶

SetSoundFonts :: proc "cdecl" (str: cstring) -> i32 ---

SetSynchroValue ¶

SetSynchroValue :: proc "cdecl" (channel: i32) -> i32 ---

SetTimidityCfg ¶

SetTimidityCfg :: proc "cdecl" (str: cstring) -> i32 ---

UnregisterAllEffects ¶

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

UnregisterEffect ¶

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

VolumeChunk ¶

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

Volume ¶

Volume :: proc "cdecl" (x, y: i32) -> i32 ---

VolumeMusic ¶

VolumeMusic :: proc "cdecl" (channel: i32) -> i32 ---

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-07 (vendor "odin") Windows_amd64 @ 2022-07-01 21:08:58.957216400 +0000 UTC