aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/pulse.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-10-19 16:16:21 -0700
committerLuca Barbato <lu_zero@gentoo.org>2011-10-19 16:16:21 -0700
commit796cd225dabd3b53340b7c6defc5e5e654de23d7 (patch)
treeaa1a9b09affa65b390474a0e37a5007d581c4c14 /libavdevice/pulse.c
parentf5b09381698e77ef24300860fa5dd763cfa9b188 (diff)
downloadffmpeg-796cd225dabd3b53340b7c6defc5e5e654de23d7.tar.gz
pulse: cosmetics
Diffstat (limited to 'libavdevice/pulse.c')
-rw-r--r--libavdevice/pulse.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/libavdevice/pulse.c b/libavdevice/pulse.c
index f0d0571d99..32d3948e18 100644
--- a/libavdevice/pulse.c
+++ b/libavdevice/pulse.c
@@ -26,7 +26,6 @@
*
* This avdevice decoder allows to capture audio from a Pulseaudio device using
* the simple api.
- *
*/
#include <pulse/simple.h>
@@ -52,19 +51,19 @@ typedef struct PulseData {
} PulseData;
static pa_sample_format_t codec_id_to_pulse_format(int codec_id) {
- switch(codec_id) {
- case CODEC_ID_PCM_U8: return PA_SAMPLE_U8;
- case CODEC_ID_PCM_ALAW: return PA_SAMPLE_ALAW;
- case CODEC_ID_PCM_MULAW: return PA_SAMPLE_ULAW;
- case CODEC_ID_PCM_S16LE: return PA_SAMPLE_S16LE;
- case CODEC_ID_PCM_S16BE: return PA_SAMPLE_S16BE;
- case CODEC_ID_PCM_F32LE: return PA_SAMPLE_FLOAT32LE;
- case CODEC_ID_PCM_F32BE: return PA_SAMPLE_FLOAT32BE;
- case CODEC_ID_PCM_S32LE: return PA_SAMPLE_S32LE;
- case CODEC_ID_PCM_S32BE: return PA_SAMPLE_S32BE;
- case CODEC_ID_PCM_S24LE: return PA_SAMPLE_S24LE;
- case CODEC_ID_PCM_S24BE: return PA_SAMPLE_S24BE;
- default: return PA_SAMPLE_INVALID;
+ switch (codec_id) {
+ case CODEC_ID_PCM_U8: return PA_SAMPLE_U8;
+ case CODEC_ID_PCM_ALAW: return PA_SAMPLE_ALAW;
+ case CODEC_ID_PCM_MULAW: return PA_SAMPLE_ULAW;
+ case CODEC_ID_PCM_S16LE: return PA_SAMPLE_S16LE;
+ case CODEC_ID_PCM_S16BE: return PA_SAMPLE_S16BE;
+ case CODEC_ID_PCM_F32LE: return PA_SAMPLE_FLOAT32LE;
+ case CODEC_ID_PCM_F32BE: return PA_SAMPLE_FLOAT32BE;
+ case CODEC_ID_PCM_S32LE: return PA_SAMPLE_S32LE;
+ case CODEC_ID_PCM_S32BE: return PA_SAMPLE_S32BE;
+ case CODEC_ID_PCM_S24LE: return PA_SAMPLE_S24LE;
+ case CODEC_ID_PCM_S24BE: return PA_SAMPLE_S24BE;
+ default: return PA_SAMPLE_INVALID;
}
}