aboutsummaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-03-04 16:02:48 +0100
committerdec05eba <dec05eba@protonmail.com>2023-03-04 16:02:48 +0100
commit8ca1ac70e8466d7aba0a57236a1d068939540a3f (patch)
tree7d1596783e377f7975ed8c8af570db0decb77ad4 /src/sound.cpp
parentc956cd4be3a4e81d1b50665debf28395a87f393f (diff)
Support opus flt and fltp
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 24e979b..762d962 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -231,6 +231,7 @@ static pa_sample_format_t audio_format_to_pulse_audio_format(AudioFormat audio_f
switch(audio_format) {
case S16: return PA_SAMPLE_S16LE;
case S32: return PA_SAMPLE_S32LE;
+ case F32: return PA_SAMPLE_FLOAT32LE;
}
assert(false);
return PA_SAMPLE_S16LE;
@@ -240,6 +241,7 @@ static int audio_format_to_get_bytes_per_sample(AudioFormat audio_format) {
switch(audio_format) {
case S16: return 2;
case S32: return 4;
+ case F32: return 4;
}
assert(false);
return 2;