sdl2/generated/lib_sdl_mixer
library
Functions
-
mixAllocateChannels(int numchans)
→ int
-
Dynamically change the number of channels managed by the mixer.
-
mixChannelFinished(Pointer<NativeType> channelFinished)
→ void
-
Set a callback that runs when a channel has finished playing.
-
mixCloseAudio()
→ void
-
Close the mixer, halting all playing audio.
-
mixEachSoundFont(Pointer<NativeType> function, Pointer<NativeType> data)
→ int
-
Iterate SoundFonts paths to use by supported MIDI backends.
-
mixExpireChannel(int channel, int ticks)
→ int
-
Change the expiration delay for a particular channel.
-
mixFadeInChannel(int channel, Pointer<MixChunk> chunk, int loops, int ms)
→ int
-
Play an audio chunk on a specific channel, fading in the audio.
-
mixFadeInChannelTimed(int channel, Pointer<MixChunk> chunk, int loops, int ms, int ticks)
→ int
-
Play an audio chunk on a specific channel, fading in the audio, for a
maximum time.
-
mixFadeInMusic(Pointer<MixMusic> music, int loops, int ms)
→ int
-
Play a new music object, fading in the audio.
-
mixFadeInMusicPos(Pointer<MixMusic> music, int loops, int ms, double position)
→ int
-
Play a new music object, fading in the audio, from a starting position.
-
mixFadeOutChannel(int which, int ms)
→ int
-
Halt a channel after fading it out for a specified time.
-
mixFadeOutGroup(int tag, int ms)
→ int
-
Halt a playing group of channels by arbitrary tag, after fading them out
for a specified time.
-
mixFadeOutMusic(int ms)
→ int
-
Halt the music stream after fading it out for a specified time.
-
mixFadingChannel(int which)
→ int
-
Query the fading status of a channel.
-
mixFadingMusic()
→ int
-
Query the fading status of the music stream.
-
mixFreeChunk(Pointer<MixChunk> chunk)
→ void
-
Free an audio chunk.
-
mixFreeMusic(Pointer<MixMusic> music)
→ void
-
Free a music object.
-
mixGetChunk(int channel)
→ Pointer<MixChunk>
-
Get the Mix_Chunk currently associated with a mixer channel.
-
mixGetChunkDecoder(int index)
→ String?
-
Get a chunk decoder's name.
-
mixGetMusicAlbumTag(Pointer<MixMusic> music)
→ String?
-
Get the album name for a music object.
-
mixGetMusicArtistTag(Pointer<MixMusic> music)
→ String?
-
Get the artist name for a music object.
-
mixGetMusicCopyrightTag(Pointer<MixMusic> music)
→ String?
-
Get the copyright text for a music object.
-
mixGetMusicDecoder(int index)
→ String?
-
Get a music decoder's name.
-
mixGetMusicHookData()
→ Pointer<NativeType>
-
Get a pointer to the user data for the current music hook.
-
mixGetMusicLoopEndTime(Pointer<MixMusic> music)
→ double
-
Get the loop end time position of music stream, in seconds.
-
mixGetMusicLoopLengthTime(Pointer<MixMusic> music)
→ double
-
Get the loop time length of music stream, in seconds.
-
mixGetMusicLoopStartTime(Pointer<MixMusic> music)
→ double
-
Get the loop start time position of music stream, in seconds.
-
mixGetMusicPosition(Pointer<MixMusic> music)
→ double
-
Get the time current position of music stream, in seconds.
-
mixGetMusicTitle(Pointer<MixMusic> music)
→ String?
-
Get the title for a music object, or its filename.
-
mixGetMusicTitleTag(Pointer<MixMusic> music)
→ String?
-
Get the title for a music object.
-
mixGetMusicType(Pointer<MixMusic> music)
→ int
-
Find out the format of a mixer music.
-
mixGetMusicVolume(Pointer<MixMusic> music)
→ int
-
Query the current volume value for a music object.
-
mixGetNumChunkDecoders()
→ int
-
Get a list of chunk decoders that this build of SDL_mixer provides.
-
mixGetNumMusicDecoders()
→ int
-
Get a list of music decoders that this build of SDL_mixer provides.
-
mixGetNumTracks(Pointer<MixMusic> music)
→ int
-
Get number of tracks in music object.
-
mixGetSoundFonts()
→ String?
-
Get SoundFonts paths to use by supported MIDI backends.
-
mixGetSynchroValue()
→ int
-
This function does nothing, do not use.
-
mixGetTimidityCfg()
→ String?
-
Get full path of a previously-specified Timidity config file.
-
mixGroupAvailable(int tag)
→ int
-
Finds the first available channel in a group of channels.
-
mixGroupChannel(int which, int tag)
→ int
-
Assign a tag to a channel.
-
mixGroupChannels(int from, int to, int tag)
→ int
-
Assign several consecutive channels to the same tag.
-
mixGroupCount(int tag)
→ int
-
Returns the number of channels in a group.
-
mixGroupNewer(int tag)
→ int
-
Find the "most recent" sample playing in a group of channels.
-
mixGroupOldest(int tag)
→ int
-
Find the "oldest" sample playing in a group of channels.
-
mixHaltChannel(int channel)
→ int
-
Halt playing of a particular channel.
-
mixHaltGroup(int tag)
→ int
-
Halt playing of a group of channels by arbitrary tag.
-
mixHaltMusic()
→ int
-
Halt playing of the music stream.
-
mixHasChunkDecoder(String? name)
→ bool
-
Check if a chunk decoder is available by name.
-
mixHasMusicDecoder(String? name)
→ bool
-
Check if a music decoder is available by name.
-
mixHookMusic(Pointer<NativeType> mixFunc, Pointer<NativeType> arg)
→ void
-
Add your own music player or additional mixer function.
-
mixHookMusicFinished(Pointer<NativeType> musicFinished)
→ void
-
Set a callback that runs when a music object has stopped playing.
-
mixInit(int flags)
→ int
-
Initialize SDL_mixer.
-
mixLinkedVersion()
→ Pointer<SdlVersion>
-
Query the version of SDL_mixer that the program is linked against.
-
mixLoadMus(String? file)
→ Pointer<MixMusic>
-
Load a supported audio format into a music object.
-
mixLoadMusRw(Pointer<SdlRWops> src, int freesrc)
→ Pointer<MixMusic>
-
Load a supported audio format into a music object.
-
mixLoadMusTypeRw(Pointer<SdlRWops> src, int type, int freesrc)
→ Pointer<MixMusic>
-
Load an audio format into a music object, assuming a specific format.
-
mixLoadWav(String? file)
→ Pointer<MixChunk>
-
Load a supported audio format into a chunk.
-
mixLoadWavRw(Pointer<SdlRWops> src, int freesrc)
→ Pointer<MixChunk>
-
Load a supported audio format into a chunk.
-
mixMasterVolume(int volume)
→ int
-
Set the master volume for all channels.
-
mixModMusicJumpToOrder(int order)
→ int
-
Jump to a given order in mod music.
-
mixMusicDuration(Pointer<MixMusic> music)
→ double
-
Get a music object's duration, in seconds.
-
mixOpenAudio(int frequency, int format, int channels, int chunksize)
→ int
-
Open the default audio device for playback.
-
mixOpenAudioDevice(int frequency, int format, int channels, int chunksize, String? device, int allowedChanges)
→ int
-
Open a specific audio device for playback.
-
mixPause(int channel)
→ void
-
Pause a particular channel.
-
mixPauseAudio(int pauseOn)
→ void
-
Suspend or resume the whole audio output.
-
mixPaused(int channel)
→ int
-
Query whether a particular channel is paused.
-
mixPausedMusic()
→ int
-
Query whether the music stream is paused.
-
mixPauseMusic()
→ void
-
Pause the music stream.
-
mixPlayChannel(int channel, Pointer<MixChunk> chunk, int loops)
→ int
-
Play an audio chunk on a specific channel.
-
mixPlayChannelTimed(int channel, Pointer<MixChunk> chunk, int loops, int ticks)
→ int
-
Play an audio chunk on a specific channel for a maximum time.
-
mixPlaying(int channel)
→ int
-
Check the playing status of a specific channel.
-
mixPlayingMusic()
→ int
-
Check the playing status of the music stream.
-
mixPlayMusic(Pointer<MixMusic> music, int loops)
→ int
-
Play a new music object.
-
mixQuerySpec(Pointer<Int32> frequency, Pointer<Uint16> format, Pointer<Int32> channels)
→ int
-
Find out what the actual audio device parameters are.
-
mixQuickLoadRaw(Pointer<Uint8> mem, int len)
→ Pointer<MixChunk>
-
Load a raw audio data from memory as quickly as possible.
-
mixQuickLoadWav(Pointer<Uint8> mem)
→ Pointer<MixChunk>
-
Load a WAV file from memory as quickly as possible.
-
mixQuit()
→ void
-
Deinitialize SDL_mixer.
-
mixRegisterEffect(int chan, Pointer<NativeFunction<MixEffectFuncT>> f, Pointer<NativeFunction<MixEffectDoneT>> d, Pointer<NativeType> arg)
→ int
-
Register a special effect function.
-
mixReserveChannels(int num)
→ int
-
Reserve the first channels for the application.
-
mixResume(int channel)
→ void
-
Resume a particular channel.
-
mixResumeMusic()
→ void
-
Resume the music stream.
-
mixRewindMusic()
→ void
-
Rewind the music stream.
-
mixSetDistance(int channel, int distance)
→ int
-
Set the "distance" of a channel.
-
mixSetMusicCmd(String? command)
→ int
-
Run an external command as the music stream.
-
mixSetMusicPosition(double position)
→ int
-
Set the current position in the music stream, in seconds.
-
mixSetPanning(int channel, int left, int right)
→ int
-
Set the panning of a channel.
-
mixSetPosition(int channel, int angle, int distance)
→ int
-
Set the position of a channel.
-
mixSetPostMix(Pointer<NativeType> mixFunc, Pointer<NativeType> arg)
→ void
-
Set a function that is called after all mixing is performed.
-
mixSetReverseStereo(int channel, int flip)
→ int
-
Cause a channel to reverse its stereo.
-
mixSetSoundFonts(String? paths)
→ int
-
Set SoundFonts paths to use by supported MIDI backends.
-
mixSetSynchroValue(int value)
→ int
-
This function does nothing, do not use.
-
mixSetTimidityCfg(String? path)
→ int
-
Set full path of the Timidity config file.
-
mixStartTrack(Pointer<MixMusic> music, int track)
→ int
-
Start a track in music object.
-
mixUnregisterAllEffects(int channel)
→ int
-
Explicitly unregister all special effect functions.
-
mixUnregisterEffect(int channel, Pointer<NativeFunction<MixEffectFuncT>> f)
→ int
-
Explicitly unregister a special effect function.
-
mixVolume(int channel, int volume)
→ int
-
Set the volume for a specific channel.
-
mixVolumeChunk(Pointer<MixChunk> chunk, int volume)
→ int
-
Set the volume for a specific chunk.
-
mixVolumeMusic(int volume)
→ int
-
Set the volume for the music channel.