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/wave.c | |
parent | fbc869eed7cee13c12c1bfef47749b9f60e492d4 (diff) |
Rename UpdateFreq device field to UpdateSize
Diffstat (limited to 'Alc/wave.c')
-rw-r--r-- | Alc/wave.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,7 +66,7 @@ static ALuint WaveProc(ALvoid *ptr) now = timeGetTime(); avail = (now-last) * pDevice->Frequency / 1000; - if(avail < pDevice->UpdateFreq/4) + if(avail < pDevice->UpdateSize/4) { Sleep(1); continue; @@ -212,9 +212,9 @@ static ALCboolean wave_open_playback(ALCdevice *device, const ALCchar *deviceNam data->DataStart = ftell(data->f); - device->UpdateFreq = max(device->UpdateFreq, 2048); + device->UpdateSize = max(device->UpdateSize, 2048); - data->size = device->UpdateFreq; + data->size = device->UpdateSize; data->buffer = malloc(data->size * channels * bits / 8); if(!data->buffer) { |