summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-22 21:22:15 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-22 21:22:15 +0200
commit3074b506519ed43f3b1888740b8f7364cdfa3a89 (patch)
tree0130cdd08c74e2db633cb41360235a2fc2654a8b
parent9ac52363fa915641dafcf069c09af741dcb1bd2a (diff)
Implement rest of ffmpeg supported PCM formats
-rw-r--r--glcapture.c10
1 files changed, 10 insertions, 0 deletions
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;
}