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:
parent
82e481b520
commit
bd088c2f99
1 changed files with 3 additions and 3 deletions
|
@ -634,7 +634,7 @@ void SDL_QuitAudio(void)
|
|||
SDL_AtomicSet(¤t_audio.output_device_count, 0);
|
||||
SDL_AtomicSet(¤t_audio.capture_device_count, 0);
|
||||
SDL_UnlockRWLock(current_audio.device_list_lock);
|
||||
|
||||
|
||||
// mark all devices for shutdown so all threads can begin to terminate.
|
||||
for (SDL_AudioDevice *i = devices; i != NULL; i = i->next) {
|
||||
SDL_AtomicSet(&i->shutdown, 1);
|
||||
|
@ -926,7 +926,7 @@ static SDL_LogicalAudioDevice *ObtainLogicalAudioDevice(SDL_AudioDeviceID devid)
|
|||
}
|
||||
|
||||
if (!logdev) {
|
||||
SDL_SetError("Invalid logical audio device instance ID");
|
||||
SDL_SetError("Invalid audio device instance ID");
|
||||
}
|
||||
|
||||
return logdev;
|
||||
|
@ -968,7 +968,7 @@ static SDL_AudioDevice *ObtainPhysicalAudioDevice(SDL_AudioDeviceID devid)
|
|||
SDL_UnlockRWLock(current_audio.device_list_lock);
|
||||
|
||||
if (!dev) {
|
||||
SDL_SetError("Invalid physical audio device instance ID");
|
||||
SDL_SetError("Invalid audio device instance ID");
|
||||
}
|
||||
|
||||
return dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue