aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-15 13:20:35 -0700
committerChris Robinson <[email protected]>2009-08-15 13:20:35 -0700
commitdc26261065a7ff78657ac79accc993c78069deca (patch)
tree2b9696d7aedc196acce6f1b05409c0f8237abf13 /Alc/portaudio.c
parent9bea67fb1c99698ccdf9cfa695a09036846163c6 (diff)
Support 32-bit float output
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index cfd35b56..4d3eb1de 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -109,6 +109,9 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName)
case 2:
outParams.sampleFormat = paInt16;
break;
+ case 4:
+ outParams.sampleFormat = paFloat32;
+ break;
default:
outParams.sampleFormat = -1;
AL_PRINT("Unknown format?! %x\n", device->Format);