mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47: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:
parent
e45a666419
commit
7bb128e1ed
2 changed files with 23 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue