mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Run cargo format
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#![allow(dead_code)]
|
||||
use super::fourcc::{FourCC,ReadFourCC, WriteFourCC, LABL_SIG, NOTE_SIG,
|
||||
ADTL_SIG, LTXT_SIG, DATA_SIG};
|
||||
use super::fourcc::{
|
||||
FourCC, ReadFourCC, WriteFourCC, ADTL_SIG, DATA_SIG, LABL_SIG, LTXT_SIG, NOTE_SIG,
|
||||
};
|
||||
|
||||
use super::list_form::collect_list_form;
|
||||
|
||||
|
||||
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