SDL_mixer icon indicating copy to clipboard operation
SDL_mixer copied to clipboard

Feature Request: Add API to retrieve SDL_AudioDeviceID from an existing MIX_Mixer

Open Etienne780 opened this issue 1 month ago • 1 comments

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.

Etienne780 avatar Nov 19 '25 07:11 Etienne780

This seems like a good idea.

slouken avatar Nov 19 '25 16:11 slouken