SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)

Mix_EffectDone_t

This is a callback that signifies that a channel has finished all its loops and has completed playback.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

typedef void (SDLCALL *Mix_EffectDone_t)(int chan, void *udata);

Remarks

This gets called if the buffer plays out normally, or if you call Mix_HaltChannel(), implicitly stop a channel via Mix_AllocateChannels(), or unregister a callback while it's still playing.

DO NOT EVER call SDL_LockAudio() from your callback function!


CategoryAPI, CategoryAPIDatatype, CategorySDLMixer


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.