This commit is contained in:
Darakshan Farber 2020-07-21 17:59:53 -07:00
parent 17e079d15d
commit 7d35b7d448
3 changed files with 4 additions and 8 deletions

View file

@ -108,9 +108,7 @@ pub fn default_input_device() -> Option<Device> {
return None;
}
let device = Device {
audio_device_id,
};
let device = Device { audio_device_id };
Some(device)
}
@ -137,9 +135,7 @@ pub fn default_output_device() -> Option<Device> {
return None;
}
let device = Device {
audio_device_id,
};
let device = Device { audio_device_id };
Some(device)
}

View file

@ -458,7 +458,7 @@ impl Data {
pub fn len(&self) -> usize {
self.len
}
/// The raw slice of memory representing the underlying audio data as a slice of bytes.
///
/// It is up to the user to interpret the slice of memory based on `Data::sample_format`.