mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-01-02 01:40:45 +00:00
Run cargo format
This commit is contained in:
36
src/fmt.rs
36
src/fmt.rs
@@ -261,28 +261,24 @@ impl WaveFmt {
|
||||
});
|
||||
|
||||
let result: (u16, Option<WaveFmtExtended>) = match channel_bitmap {
|
||||
ch if bits_per_sample != container_bits_per_sample => {
|
||||
(
|
||||
0xFFFE,
|
||||
Some(WaveFmtExtended {
|
||||
valid_bits_per_sample: bits_per_sample,
|
||||
channel_mask: ch,
|
||||
type_guid: UUID_PCM,
|
||||
}),
|
||||
)
|
||||
}
|
||||
ch if bits_per_sample != container_bits_per_sample => (
|
||||
0xFFFE,
|
||||
Some(WaveFmtExtended {
|
||||
valid_bits_per_sample: bits_per_sample,
|
||||
channel_mask: ch,
|
||||
type_guid: UUID_PCM,
|
||||
}),
|
||||
),
|
||||
0b0100 => (0x0001, None),
|
||||
0b0011 => (0x0001, None),
|
||||
ch => {
|
||||
(
|
||||
0xFFFE,
|
||||
Some(WaveFmtExtended {
|
||||
valid_bits_per_sample: bits_per_sample,
|
||||
channel_mask: ch,
|
||||
type_guid: UUID_PCM,
|
||||
}),
|
||||
)
|
||||
}
|
||||
ch => (
|
||||
0xFFFE,
|
||||
Some(WaveFmtExtended {
|
||||
valid_bits_per_sample: bits_per_sample,
|
||||
channel_mask: ch,
|
||||
type_guid: UUID_PCM,
|
||||
}),
|
||||
),
|
||||
};
|
||||
|
||||
let (tag, extformat) = result;
|
||||
|
||||
Reference in New Issue
Block a user