diff options
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; |