mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Revert "Clarify whether an audio function expects a physical or logical device ID"
This reverts commit 506a133d84
.
Physical and logical audio devices are intended to be interchangeable at the API level.
This commit is contained in:
@@ -926,7 +926,7 @@ static SDL_LogicalAudioDevice *ObtainLogicalAudioDevice(SDL_AudioDeviceID devid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!logdev) {
|
if (!logdev) {
|
||||||
SDL_SetError("Invalid logical audio device instance ID");
|
SDL_SetError("Invalid audio device instance ID");
|
||||||
}
|
}
|
||||||
|
|
||||||
return logdev;
|
return logdev;
|
||||||
@@ -968,7 +968,7 @@ static SDL_AudioDevice *ObtainPhysicalAudioDevice(SDL_AudioDeviceID devid)
|
|||||||
SDL_UnlockRWLock(current_audio.device_list_lock);
|
SDL_UnlockRWLock(current_audio.device_list_lock);
|
||||||
|
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
SDL_SetError("Invalid physical audio device instance ID");
|
SDL_SetError("Invalid audio device instance ID");
|
||||||
}
|
}
|
||||||
|
|
||||||
return dev;
|
return dev;
|
||||||
|
Reference in New Issue
Block a user