summaryrefslogtreecommitdiffstats
path: root/Alc/wave.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/wave.c
parentfbc869eed7cee13c12c1bfef47749b9f60e492d4 (diff)
Rename UpdateFreq device field to UpdateSize
Diffstat (limited to 'Alc/wave.c')
-rw-r--r--Alc/wave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index bed94714..19f2d9e1 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -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)
{