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

LibAudio: Add integer sample format-specific support

This allows us to better handle specifically integer sample formats.
This commit is contained in:
kleines Filmröllchen 2023-06-30 20:07:18 +02:00 committed by Andrew Kaster
parent e45a666419
commit 7bb128e1ed
2 changed files with 23 additions and 0 deletions

View file

@ -23,5 +23,7 @@ enum class PcmSampleFormat : u8 {
// Most of the read code only cares about how many bits to read or write
u16 pcm_bits_per_sample(PcmSampleFormat format);
bool is_integer_format(PcmSampleFormat format);
Optional<PcmSampleFormat> integer_sample_format_for(u16 bits_per_sample);
DeprecatedString sample_format_name(PcmSampleFormat format);
}