File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ use std::collections::VecDeque;
4
4
use std:: ffi:: CStr ;
5
5
use std:: os:: raw:: { c_char, c_void} ;
6
6
use std:: ptr:: null;
7
+ use std:: sync:: atomic:: { AtomicBool , Ordering } ;
7
8
use std:: sync:: mpsc:: { channel, Sender } ;
8
9
use std:: sync:: Mutex ;
9
- use std:: sync:: atomic:: { AtomicBool , Ordering } ;
10
10
use std:: time:: Duration ;
11
11
use std:: { mem, slice, thread} ;
12
12
@@ -488,10 +488,7 @@ impl RateListener {
488
488
/// Create a new RateListener for the given AudioDeviceID.
489
489
/// If a sync Sender is provided, then events will be pushed to that channel.
490
490
/// 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 {
495
492
// Add our sample rate change listener callback.
496
493
let property_address = AudioObjectPropertyAddress {
497
494
mSelector : kAudioDevicePropertyNominalSampleRate,
You can’t perform that action at this time.
0 commit comments