aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-12 19:38:27 -0800
committerChris Robinson <[email protected]>2008-02-12 19:38:27 -0800
commitc3446a10fafcfb8f49f20dcee1561e8fa750dd00 (patch)
tree5078072066929c0e9772ef1b1f15ef8921febc40 /Alc/oss.c
parentfbc869eed7cee13c12c1bfef47749b9f60e492d4 (diff)
Rename UpdateFreq device field to UpdateSize
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 10591b79..477a354f 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -197,7 +197,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
periods = 4;
numChannels = aluChannelsFromFormat(device->Format);
ossSpeed = device->Frequency;
- log2FragmentSize = log2i(device->UpdateFreq * device->FrameSize / periods);
+ log2FragmentSize = log2i(device->UpdateSize * device->FrameSize / periods);
/* according to the OSS spec, 16 bytes are the minimum */
if (log2FragmentSize < 4)
@@ -237,9 +237,9 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
return ALC_FALSE;
}
- device->UpdateFreq = info.fragsize / device->FrameSize;
+ device->UpdateSize = info.fragsize / device->FrameSize;
- data->data_size = device->UpdateFreq * device->FrameSize;
+ data->data_size = device->UpdateSize * device->FrameSize;
data->mix_data = calloc(1, data->data_size);
device->ExtraData = data;
@@ -321,7 +321,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName,
periods = 4;
numChannels = aluChannelsFromFormat(device->Format);
ossSpeed = frequency;
- log2FragmentSize = log2i(device->UpdateFreq * device->FrameSize / periods);
+ log2FragmentSize = log2i(device->UpdateSize * device->FrameSize / periods);
/* according to the OSS spec, 16 bytes are the minimum */
if (log2FragmentSize < 4)
@@ -368,9 +368,9 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName,
return ALC_FALSE;
}
- device->UpdateFreq = info.fragsize / device->FrameSize;
+ device->UpdateSize = info.fragsize / device->FrameSize;
- data->data_size = device->UpdateFreq * device->FrameSize * info.fragments;
+ data->data_size = device->UpdateSize * device->FrameSize * info.fragments;
data->mix_data = calloc(1, data->data_size);
device->ExtraData = data;