SDL_mixer
SDL_mixer copied to clipboard
Feature Request: Add API to retrieve SDL_AudioDeviceID from an existing MIX_Mixer
Currently, when creating a mixer with:Currently, when creating a mixer with:
MIX_Mixer *MIX_CreateMixerDevice(SDL_AudioDeviceID devid, const SDL_AudioSpec *spec);
the SDL_AudioDeviceID used for initialization is not accessible afterwards through the mixer API.
It would be useful to have a function such as:
SDL_AudioDeviceID MIX_GetMixerDeviceID(MIX_Mixer *mixer);
that returns the device ID associated with a given mixer.
This would simplify debugging and device management without requiring external bookkeeping.
This seems like a good idea.