mixSetGroupPostMixCallback function mixer
- Pointer<
MixGroup> group, - Pointer<
NativeFunction< cb,MixGroupMixCallback> > - Pointer<
NativeType> userdata
Set a callback that fires when a mixer group has completed mixing.
After all playing tracks in a mixer group have pulled in more data from their inputs, transformed it, and mixed together into a single buffer, a callback can be fired. This lets an app view the data at the last moment that it is still a part of this group. It can also change the data in any way it pleases during this callback, and the mixer will continue as if this data came directly from the group's mix buffer.
Each group has its own unique callback. Tracks that aren't in an explicit MIX_Group are mixed in an internal grouping that is not available to the app.
Passing a NULL callback here is legal; it disables this group's callback.
\param group the mixing group to assign this callback to. \param cb the function to call when the group mixes. May be NULL. \param userdata an opaque pointer provided to the callback for its own personal use. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL_mixer 3.0.0.
\sa MIX_GroupMixCallback
extern SDL_DECLSPEC bool SDLCALL MIX_SetGroupPostMixCallback(MIX_Group *group, MIX_GroupMixCallback cb, void *userdata)
Implementation
bool mixSetGroupPostMixCallback(
Pointer<MixGroup> group,
Pointer<NativeFunction<MixGroupMixCallback>> cb,
Pointer<NativeType> userdata,
) {
final mixSetGroupPostMixCallbackLookupFunction = _libMixer
.lookupFunction<
Uint8 Function(
Pointer<MixGroup> group,
Pointer<NativeFunction<MixGroupMixCallback>> cb,
Pointer<NativeType> userdata,
),
int Function(
Pointer<MixGroup> group,
Pointer<NativeFunction<MixGroupMixCallback>> cb,
Pointer<NativeType> userdata,
)
>('MIX_SetGroupPostMixCallback');
return mixSetGroupPostMixCallbackLookupFunction(group, cb, userdata) == 1;
}