From c3446a10fafcfb8f49f20dcee1561e8fa750dd00 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 12 Feb 2008 19:38:27 -0800 Subject: Rename UpdateFreq device field to UpdateSize --- Alc/oss.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Alc/oss.c') 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; -- cgit v1.2.3