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

Mix_HookMusic

Add your own music player or additional mixer function.

Syntax

void Mix_HookMusic(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);

Function Parameters

mix_func

mixer function callback

arg

callback argument to be passed

Remarks

If 'mix_func' is NULL, the default music player is re-enabled.

Version

This function is available since SDL_mixer 2.0.0.


CategoryAPI


[ 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.