diff options
author | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
commit | 37190b2cafdec52a23034194a3e63d8d33bdc544 (patch) | |
tree | 99dada718dcb76d94223b62392f0181b5a3314ba /Alc/oss.c | |
parent | c6b948323ebc8632e0b763f090cdcd19255d0ac2 (diff) |
Add a function to get the frame size from a format
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -84,8 +84,7 @@ static ALuint OSSProc(ALvoid *ptr) SetRTPriority(); - frameSize = aluChannelsFromFormat(pDevice->Format) * - aluBytesFromFormat(pDevice->Format); + frameSize = aluFrameSizeFromFormat(pDevice->Format); while(!data->killNow && pDevice->Connected) { @@ -126,8 +125,7 @@ static ALuint OSSCaptureProc(ALvoid *ptr) SetRTPriority(); - frameSize = aluBytesFromFormat(pDevice->Format); - frameSize *= aluChannelsFromFormat(pDevice->Format); + frameSize = aluFrameSizeFromFormat(pDevice->Format); while(!data->killNow) { |