From 0ae02e8ad4f77287e4641ab9491c94efac2d402b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 21 Sep 2009 02:31:33 -0700 Subject: Support floating point capture for backends that can handle it --- Alc/pulseaudio.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc/pulseaudio.c') diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 53e864b2..b5add4c8 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -491,6 +491,9 @@ static ALCboolean pulse_open_capture(ALCdevice *device, const ALCchar *device_na case 2: data->spec.format = PA_SAMPLE_S16NE; break; + case 4: + data->spec.format = PA_SAMPLE_FLOAT32NE; + break; default: AL_PRINT("Unknown format: %x\n", device->Format); ppa_threaded_mainloop_unlock(data->loop); -- cgit v1.2.3