aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-13 19:36:14 -0700
committerChris Robinson <[email protected]>2009-08-13 19:36:14 -0700
commite0792912028d143b89b3835b2a7203693a494d0f (patch)
tree763e226941fbad9850b8cfc29d309d3c92ea6537 /Alc/pulseaudio.c
parent826c641668a14c244bac30d61a681c6817461f80 (diff)
Remove unnecessary function parameters
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index 89f47fba..a9fcb3df 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -201,12 +201,12 @@ static void stream_read_callback(pa_stream *stream, size_t length, void *pdata)
} //}}}
//}}}
-static ALCboolean pulse_open(ALCdevice *device, ALCchar *device_name, ALCuint samples) //{{{
+static ALCboolean pulse_open(ALCdevice *device, ALCchar *device_name) //{{{
{
pulse_data *data = ppa_xmalloc0(sizeof(pulse_data));
data->device = device;
- data->samples = samples;
+ data->samples = device->BufferSize;
data->frame_size = aluBytesFromFormat(device->Format) *
aluChannelsFromFormat(device->Format);
@@ -337,7 +337,7 @@ static ALCboolean pulse_open_playback(ALCdevice *device, const ALCchar *device_n
return ALC_FALSE;
}
- return pulse_open(device, pulse_device, 0);
+ return pulse_open(device, pulse_device);
} //}}}
static void pulse_close_playback(ALCdevice *device) //{{{
@@ -450,7 +450,7 @@ static void pulse_stop_context(ALCdevice *device, ALCcontext *context) //{{{
} //}}}
-static ALCboolean pulse_open_capture(ALCdevice *device, const ALCchar *device_name, ALCuint frequency, ALCenum format, ALCsizei samples) //{{{
+static ALCboolean pulse_open_capture(ALCdevice *device, const ALCchar *device_name) //{{{
{
pulse_data *data;
@@ -463,10 +463,7 @@ static ALCboolean pulse_open_capture(ALCdevice *device, const ALCchar *device_na
return ALC_FALSE;
}
- assert(device->Format == format);
- assert(device->Frequency == frequency);
-
- if(pulse_open(device, pulse_capture_device, samples) == ALC_FALSE)
+ if(pulse_open(device, pulse_capture_device) == ALC_FALSE)
return ALC_FALSE;
data = device->ExtraData;