diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-06-24 23:54:28 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-25 20:48:14 +0430 |
commit | d599a14545ffda1fa538efcb9fed67c8e569bc58 (patch) | |
tree | bd4e7124531c52e1e573f1750d79f90893319e39 /Userland/Libraries/LibAudio | |
parent | 9d4c50ca6065df7e5ffe00de98333f83c7e05687 (diff) | |
download | serenity-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.cpp | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibAudio/Buffer.h | 1 |
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, }; |