Skip to content

Commit fcae2ed

Browse files
committed
Format
1 parent 7dea8ed commit fcae2ed

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/audio_unit/macos_helpers.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use std::collections::VecDeque;
44
use std::ffi::CStr;
55
use std::os::raw::{c_char, c_void};
66
use std::ptr::null;
7+
use std::sync::atomic::{AtomicBool, Ordering};
78
use std::sync::mpsc::{channel, Sender};
89
use std::sync::Mutex;
9-
use std::sync::atomic::{AtomicBool, Ordering};
1010
use std::time::Duration;
1111
use std::{mem, slice, thread};
1212

@@ -488,10 +488,7 @@ impl RateListener {
488488
/// Create a new RateListener for the given AudioDeviceID.
489489
/// If a sync Sender is provided, then events will be pushed to that channel.
490490
/// If not, they will be stored in an internal queue that will need to be polled.
491-
pub fn new(
492-
device_id: AudioDeviceID,
493-
sync_channel: Option<Sender<f64>>,
494-
) -> RateListener {
491+
pub fn new(device_id: AudioDeviceID, sync_channel: Option<Sender<f64>>) -> RateListener {
495492
// Add our sample rate change listener callback.
496493
let property_address = AudioObjectPropertyAddress {
497494
mSelector: kAudioDevicePropertyNominalSampleRate,

0 commit comments

Comments
 (0)