aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.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/oss.c
parent826c641668a14c244bac30d61a681c6817461f80 (diff)
Remove unnecessary function parameters
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 3a8c0ed1..75710492 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -284,7 +284,7 @@ static void oss_stop_context(ALCdevice *device, ALCcontext *context)
}
-static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName, ALCuint frequency, ALCenum format, ALCsizei SampleSize)
+static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName)
{
int numFragmentsLogSize;
int log2FragmentSize;
@@ -321,7 +321,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName,
return ALC_FALSE;
}
- switch(aluBytesFromFormat(format))
+ switch(aluBytesFromFormat(device->Format))
{
case 1:
ossFormat = AFMT_U8;
@@ -337,8 +337,8 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName,
periods = 4;
numChannels = aluChannelsFromFormat(device->Format);
frameSize = numChannels * aluBytesFromFormat(device->Format);
- ossSpeed = frequency;
- log2FragmentSize = log2i(SampleSize * frameSize / periods);
+ ossSpeed = device->Frequency;
+ log2FragmentSize = log2i(device->BufferSize * frameSize / periods);
/* according to the OSS spec, 16 bytes are the minimum */
if (log2FragmentSize < 4)
@@ -376,7 +376,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName,
return ALC_FALSE;
}
- data->ring = CreateRingBuffer(frameSize, SampleSize);
+ data->ring = CreateRingBuffer(frameSize, device->BufferSize);
if(!data->ring)
{
AL_PRINT("ring buffer create failed\n");