mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Removed the AUDIODEV environment variable from the sndio audio driver
The sndio documentation says that the AUDIODEVICE environment variable is used when the device is opened with SIO_DEVANY.
This commit is contained in:
@@ -231,11 +231,8 @@ static int SNDIO_OpenDevice(SDL_AudioDevice *device)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// !!! FIXME: we really should standardize this on a specific SDL hint.
|
|
||||||
const char *audiodev = SDL_getenv("AUDIODEV");
|
|
||||||
|
|
||||||
// Recording devices must be non-blocking for SNDIO_FlushRecording
|
// Recording devices must be non-blocking for SNDIO_FlushRecording
|
||||||
device->hidden->dev = SNDIO_sio_open(audiodev ? audiodev : SIO_DEVANY,
|
device->hidden->dev = SNDIO_sio_open(SIO_DEVANY,
|
||||||
device->recording ? SIO_REC : SIO_PLAY, device->recording);
|
device->recording ? SIO_REC : SIO_PLAY, device->recording);
|
||||||
if (!device->hidden->dev) {
|
if (!device->hidden->dev) {
|
||||||
return SDL_SetError("sio_open() failed");
|
return SDL_SetError("sio_open() failed");
|
||||||
|
Reference in New Issue
Block a user