summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-26 21:09:08 -0800
committerChris Robinson <[email protected]>2008-01-26 21:09:08 -0800
commitd06c64e1c418802c1461cc8b433251140ad5ad6f (patch)
tree0ea2c7d3c3164433ff36f89d9f6aedc1063f2743 /Alc
parentb4ad3186dd0e1ce8103d6266468e5a3314d288ff (diff)
aluBytesFromFormat returns bytes, not bits
Diffstat (limited to 'Alc')
-rw-r--r--Alc/dsound.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 633a78ff..e7bfb139 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -164,35 +164,35 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam
speakers = DSSPEAKER_CONFIG(speakers);
if(speakers == DSSPEAKER_MONO)
{
- if(aluBytesFromFormat(device->Format) == 8)
+ if(aluBytesFromFormat(device->Format) == 1)
device->Format = AL_FORMAT_MONO8;
else
device->Format = AL_FORMAT_MONO16;
}
else if(speakers == DSSPEAKER_STEREO)
{
- if(aluBytesFromFormat(device->Format) == 8)
+ if(aluBytesFromFormat(device->Format) == 1)
device->Format = AL_FORMAT_STEREO8;
else
device->Format = AL_FORMAT_STEREO16;
}
else if(speakers == DSSPEAKER_QUAD)
{
- if(aluBytesFromFormat(device->Format) == 8)
+ if(aluBytesFromFormat(device->Format) == 1)
device->Format = AL_FORMAT_QUAD8;
else
device->Format = AL_FORMAT_QUAD16;
}
else if(speakers == DSSPEAKER_5POINT1)
{
- if(aluBytesFromFormat(device->Format) == 8)
+ if(aluBytesFromFormat(device->Format) == 1)
device->Format = AL_FORMAT_51CHN8;
else
device->Format = AL_FORMAT_51CHN16;
}
else if(speakers == DSSPEAKER_7POINT1)
{
- if(aluBytesFromFormat(device->Format) == 8)
+ if(aluBytesFromFormat(device->Format) == 1)
device->Format = AL_FORMAT_71CHN8;
else
device->Format = AL_FORMAT_71CHN16;