audio: Remove const from an SDL_bool parameter in SDL_AddAudioDevice.

This commit is contained in:
Ryan C. Gordon
2024-06-14 22:21:21 -04:00
parent 38f0214e8a
commit b83ab7eb12
2 changed files with 2 additions and 2 deletions

View File

@@ -622,7 +622,7 @@ static SDL_AudioDevice *CreateAudioPlaybackDevice(const char *name, const SDL_Au
}
// The audio backends call this when a new device is plugged in.
SDL_AudioDevice *SDL_AddAudioDevice(const SDL_bool recording, const char *name, const SDL_AudioSpec *inspec, void *handle)
SDL_AudioDevice *SDL_AddAudioDevice(SDL_bool recording, const char *name, const SDL_AudioSpec *inspec, void *handle)
{
// device handles MUST be unique! If the target reuses the same handle for hardware with both recording and playback interfaces, wrap it in a pointer you SDL_malloc'd!
SDL_assert(SDL_FindPhysicalAudioDeviceByHandle(handle) == NULL);