summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio
diff options
context:
space:
mode:
authorkleines Filmröllchen <malu.bertsch@gmail.com>2021-06-24 23:54:28 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-25 20:48:14 +0430
commitd599a14545ffda1fa538efcb9fed67c8e569bc58 (patch)
treebd4e7124531c52e1e573f1750d79f90893319e39 /Userland/Libraries/LibAudio
parent9d4c50ca6065df7e5ffe00de98333f83c7e05687 (diff)
downloadserenity-d599a14545ffda1fa538efcb9fed67c8e569bc58.zip
LibAudio: Add the Int32 sample format
The signed 32-bit PCM sample format is required for the FLAC standard.
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r--Userland/Libraries/LibAudio/Buffer.cpp1
-rw-r--r--Userland/Libraries/LibAudio/Buffer.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibAudio/Buffer.cpp b/Userland/Libraries/LibAudio/Buffer.cpp
index ce3da09cd8..86a51aa7ac 100644
--- a/Userland/Libraries/LibAudio/Buffer.cpp
+++ b/Userland/Libraries/LibAudio/Buffer.cpp
@@ -21,6 +21,7 @@ u16 pcm_bits_per_sample(PcmSampleFormat format)
return 16;
case Int24:
return 24;
+ case Int32:
case Float32:
return 32;
case Float64:
diff --git a/Userland/Libraries/LibAudio/Buffer.h b/Userland/Libraries/LibAudio/Buffer.h
index bcdb9a8279..88d0fa0c56 100644
--- a/Userland/Libraries/LibAudio/Buffer.h
+++ b/Userland/Libraries/LibAudio/Buffer.h
@@ -76,6 +76,7 @@ enum PcmSampleFormat : u8 {
Uint8,
Int16,
Int24,
+ Int32,
Float32,
Float64,
};