aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-28 23:00:59 -0700
committerChris Robinson <[email protected]>2010-05-28 23:00:59 -0700
commitebccfa93c3c1eca4b85e4cf6753bd44965350c5a (patch)
tree0ad08e67c936524d201ddb0d4eb87e78aadbf1f1 /Alc/portaudio.c
parente9f4576d4d0340b4f4c090977ef48a56c619fd6d (diff)
Don't unload libs when they're not needed
Some libs don't really like being unloaded and reloaded all the time, and the benefits aren't that great
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index c75c2a53..561f7470 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -125,10 +125,6 @@ LOAD_FUNC(Pa_GetStreamInfo);
return pa_handle;
}
-void pa_unload(void)
-{
-}
-
typedef struct {
PaStream *stream;
@@ -210,7 +206,6 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName)
AL_PRINT("Unknown format: 0x%x\n", device->Format);
device->ExtraData = NULL;
free(data);
- pa_unload();
return ALC_FALSE;
}
outParams.channelCount = aluChannelsFromFormat(device->Format);
@@ -224,7 +219,6 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName)
AL_PRINT("Pa_OpenStream() returned an error: %s\n", pPa_GetErrorText(err));
device->ExtraData = NULL;
free(data);
- pa_unload();
return ALC_FALSE;
}
streamInfo = pPa_GetStreamInfo(data->stream);
@@ -246,8 +240,6 @@ static void pa_close_playback(ALCdevice *device)
free(data);
device->ExtraData = NULL;
-
- pa_unload();
}
static ALCboolean pa_reset_playback(ALCdevice *device)
@@ -350,7 +342,6 @@ static ALCboolean pa_open_capture(ALCdevice *device, const ALCchar *deviceName)
error:
DestroyRingBuffer(data->ring);
free(data);
- pa_unload();
return ALC_FALSE;
}
@@ -365,8 +356,6 @@ static void pa_close_capture(ALCdevice *device)
free(data);
device->ExtraData = NULL;
-
- pa_unload();
}
static void pa_start_capture(ALCdevice *device)
@@ -447,6 +436,4 @@ void alc_pa_probe(int type)
AppendAllDeviceList(pa_device);
else if(type == CAPTURE_DEVICE_PROBE)
AppendCaptureDeviceList(pa_capture);
-
- pa_unload();
}