From 3074b506519ed43f3b1888740b8f7364cdfa3a89 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 22 Jan 2017 21:22:15 +0200 Subject: Implement rest of ffmpeg supported PCM formats --- glcapture.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/glcapture.c b/glcapture.c index 1f32181..b4dde20 100644 --- a/glcapture.c +++ b/glcapture.c @@ -229,10 +229,20 @@ alsa_get_format(const snd_pcm_format_t format) case SND_PCM_FORMAT_FLOAT_BE: return "f32be"; case SND_PCM_FORMAT_S32_LE: return "s32le"; case SND_PCM_FORMAT_S32_BE: return "s32be"; + case SND_PCM_FORMAT_U32_LE: return "u32le"; + case SND_PCM_FORMAT_U32_BE: return "u32be"; case SND_PCM_FORMAT_S24_LE: return "s24le"; case SND_PCM_FORMAT_S24_BE: return "s24be"; + case SND_PCM_FORMAT_U24_LE: return "u24le"; + case SND_PCM_FORMAT_U24_BE: return "u24be"; case SND_PCM_FORMAT_S16_LE: return "s16le"; case SND_PCM_FORMAT_S16_BE: return "s16be"; + case SND_PCM_FORMAT_U16_LE: return "u16le"; + case SND_PCM_FORMAT_U16_BE: return "u16be"; + case SND_PCM_FORMAT_S8: return "s8"; + case SND_PCM_FORMAT_U8: return "u8"; + case SND_PCM_FORMAT_MU_LAW: return "mulaw"; + case SND_PCM_FORMAT_A_LAW: return "alaw"; default: break; } -- cgit v1.2.3-70-g09d2