From 39c984fda82ce6807267fff972b53729b0f521ec Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 22 Jun 2011 20:45:45 -0700 Subject: Actually load libsndio.so --- Alc/sndio.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Alc') 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: -- cgit v1.2.3