aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-16 00:24:44 -0700
committerChris Robinson <[email protected]>2009-09-16 00:24:44 -0700
commit94e3fca7022c5c7f8147200ffdb3cda5ded62488 (patch)
treed845e03d001dba7d48bfcd6035030ff5941a97e7 /Alc/portaudio.c
parentffff10455435908e7975110c685cca78cebe5769 (diff)
Remove unnecessary parameters, and rename methods
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index 875b01ee..50039286 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -160,7 +160,7 @@ static void pa_close_playback(ALCdevice *device)
device->ExtraData = NULL;
}
-static ALCboolean pa_start_context(ALCdevice *device, ALCcontext *context)
+static ALCboolean pa_reset_playback(ALCdevice *device)
{
pa_data *data = (pa_data*)device->ExtraData;
const PaStreamInfo *streamInfo;
@@ -169,13 +169,11 @@ static ALCboolean pa_start_context(ALCdevice *device, ALCcontext *context)
device->Frequency = streamInfo->sampleRate;
return ALC_TRUE;
- (void)context;
}
-static void pa_stop_context(ALCdevice *device, ALCcontext *context)
+static void pa_stop_playback(ALCdevice *device)
{
(void)device;
- (void)context;
}
@@ -191,8 +189,8 @@ static ALCboolean pa_open_capture(ALCdevice *device, const ALCchar *deviceName)
static const BackendFuncs pa_funcs = {
pa_open_playback,
pa_close_playback,
- pa_start_context,
- pa_stop_context,
+ pa_reset_playback,
+ pa_stop_playback,
pa_open_capture,
NULL,
NULL,