mixGetMixerProperties function mixer

int mixGetMixerProperties(
  1. Pointer<MixMixer> mixer
)

Get the properties associated with a mixer.

The following read-only properties are provided by SDL_mixer:

  • MIX_PROP_MIXER_DEVICE_NUMBER: the SDL_AudioDeviceID that this mixer has opened for playback. This will be zero (no device) if the mixer was created with Mix_CreateMixer() instead of Mix_CreateMixerDevice().

\param mixer the mixer to query. \returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC SDL_PropertiesID SDLCALL MIX_GetMixerProperties(MIX_Mixer *mixer)

Implementation

int mixGetMixerProperties(Pointer<MixMixer> mixer) {
  final mixGetMixerPropertiesLookupFunction = _libMixer
      .lookupFunction<
        Uint32 Function(Pointer<MixMixer> mixer),
        int Function(Pointer<MixMixer> mixer)
      >('MIX_GetMixerProperties');
  return mixGetMixerPropertiesLookupFunction(mixer);
}