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/dsound.c | |
parent | fbc869eed7cee13c12c1bfef47749b9f60e492d4 (diff) |
Rename UpdateFreq device field to UpdateSize
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index 98c50e83..22c6f827 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -73,7 +73,7 @@ static ALuint DSoundProc(ALvoid *ptr) DWORD avail; HRESULT err; - BufferSize = pDevice->UpdateFreq*DS_FRAGS*pDevice->FrameSize; + BufferSize = pDevice->UpdateSize*DS_FRAGS*pDevice->FrameSize; while(!pData->killNow) { @@ -238,7 +238,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam OutputType.Format.nAvgBytesPerSec = OutputType.Format.nSamplesPerSec*OutputType.Format.nBlockAlign; OutputType.Format.cbSize = 0; - device->UpdateFreq /= DS_FRAGS; + device->UpdateSize /= DS_FRAGS; } if(OutputType.Format.nChannels > 2) @@ -266,7 +266,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam memset(&DSBDescription,0,sizeof(DSBUFFERDESC)); DSBDescription.dwSize=sizeof(DSBUFFERDESC); DSBDescription.dwFlags=DSBCAPS_GLOBALFOCUS|DSBCAPS_GETCURRENTPOSITION2; - DSBDescription.dwBufferBytes=device->UpdateFreq * DS_FRAGS * device->FrameSize; + DSBDescription.dwBufferBytes=device->UpdateSize * DS_FRAGS * device->FrameSize; DSBDescription.lpwfxFormat=&OutputType.Format; hr = IDirectSound_CreateSoundBuffer(pData->lpDS, &DSBDescription, &pData->DSsbuffer, NULL); } |