diff options
author | Chris Robinson <[email protected]> | 2011-06-22 20:45:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-22 20:45:45 -0700 |
commit | 39c984fda82ce6807267fff972b53729b0f521ec (patch) | |
tree | 0d93ec5a98fabc8ae5a57d45602a6d62c4bd93e5 /Alc | |
parent | 9c23bc53b7eb28e51a1fff61380cbf173942a9a5 (diff) |
Actually load libsndio.so
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/sndio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/sndio.c b/Alc/sndio.c index 7b6263ee..3b4d4316 100644 --- a/Alc/sndio.c +++ b/Alc/sndio.c @@ -170,6 +170,9 @@ static ALCboolean sndio_open_playback(ALCdevice *device, const ALCchar *deviceNa { sndio_data *data; + if(!sndio_load()) + return ALC_FALSE; + if(!deviceName) deviceName = sndio_device; else if(strcmp(deviceName, sndio_device) != 0) @@ -372,6 +375,9 @@ void alc_sndio_deinit(void) void alc_sndio_probe(enum DevProbe type) { + if(!sndio_load()) + return; + switch(type) { case DEVICE_PROBE: |