1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

LibAudio: Add the Int32 sample format

The signed 32-bit PCM sample format is required for the FLAC standard.
This commit is contained in:
kleines Filmröllchen 2021-06-24 23:54:28 +02:00 committed by Ali Mohammad Pur
parent 9d4c50ca60
commit d599a14545
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ u16 pcm_bits_per_sample(PcmSampleFormat format)
return 16; return 16;
case Int24: case Int24:
return 24; return 24;
case Int32:
case Float32: case Float32:
return 32; return 32;
case Float64: case Float64:

View file

@ -76,6 +76,7 @@ enum PcmSampleFormat : u8 {
Uint8, Uint8,
Int16, Int16,
Int24, Int24,
Int32,
Float32, Float32,
Float64, Float64,
}; };