cargo fmt fix
This commit is contained in:
parent
7c1adce330
commit
9c85eecb59
|
@ -442,7 +442,11 @@ impl Driver {
|
|||
/// If buffersize is None then the preferred buffer size from ASIO is used,
|
||||
/// otherwise the desired buffersize is used if the requeted size is within
|
||||
/// the range of accepted buffersizes for the device.
|
||||
fn create_buffers(&self, buffer_infos: &mut [AsioBufferInfo], buffer_size: Option<i32>) -> Result<c_long, AsioError> {
|
||||
fn create_buffers(
|
||||
&self,
|
||||
buffer_infos: &mut [AsioBufferInfo],
|
||||
buffer_size: Option<i32>,
|
||||
) -> Result<c_long, AsioError> {
|
||||
let num_channels = buffer_infos.len();
|
||||
|
||||
// To pass as ai::ASIOCallbacks
|
||||
|
@ -464,9 +468,9 @@ impl Driver {
|
|||
if v <= buffer_sizes.max {
|
||||
v
|
||||
} else {
|
||||
return Err(AsioError::InvalidBufferSize)
|
||||
return Err(AsioError::InvalidBufferSize);
|
||||
}
|
||||
}
|
||||
},
|
||||
None => buffer_sizes.pref,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue