summaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 5fee7734..fe339305 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -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)
{