diff options
author | Chris Robinson <[email protected]> | 2008-02-12 19:38:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-02-12 19:38:27 -0800 |
commit | c3446a10fafcfb8f49f20dcee1561e8fa750dd00 (patch) | |
tree | 5078072066929c0e9772ef1b1f15ef8921febc40 /Alc/oss.c | |
parent | fbc869eed7cee13c12c1bfef47749b9f60e492d4 (diff) |
Rename UpdateFreq device field to UpdateSize
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |