Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineGod committed Dec 4, 2024
1 parent 75f9f92 commit 86de41b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,10 @@ mod tests {
let input = SamplesBuffer::new(1, 48000, v.clone());

// High rate to avoid immediate control.
sink.append(ChannelVolume::new(input, vec![0.01f32, 0.01, 0.0, 0.0, 0.0, 0.0]));
sink.append(ChannelVolume::new(
input,
vec![0.01f32, 0.01, 0.0, 0.0, 0.0, 0.0],
));

assert_eq!(queue_rx.next(), Some(1.0));
assert_eq!(queue_rx.next(), Some(1.0));
Expand Down
4 changes: 2 additions & 2 deletions src/source/channel_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ mod test {

#[test]
fn test_channel_volume_iterator() {

let input_source = SamplesBuffer::new(1, 48000, vec![100i16]);

let mut channel_volume = ChannelVolume::new(input_source, vec![0.01, 0.01, 0.0, 0.0, 0.0, 0.0]);
let mut channel_volume =
ChannelVolume::new(input_source, vec![0.01, 0.01, 0.0, 0.0, 0.0, 0.0]);

assert_eq!(channel_volume.channels(), 6);
assert_eq!(channel_volume.sample_rate(), 48000);
Expand Down

0 comments on commit 86de41b

Please sign in to comment.