cargo fmt fix for coreaudio
This commit is contained in:
parent
10599ac826
commit
271cc34f3f
|
@ -689,7 +689,7 @@ impl Device {
|
||||||
BufferSize::Fixed(v) => {
|
BufferSize::Fixed(v) => {
|
||||||
let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?;
|
let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?;
|
||||||
match buffer_size_range {
|
match buffer_size_range {
|
||||||
SupportedBufferSize::Range{min, max} => {
|
SupportedBufferSize::Range { min, max } => {
|
||||||
if v >= min && v <= max {
|
if v >= min && v <= max {
|
||||||
audio_unit.set_property(
|
audio_unit.set_property(
|
||||||
kAudioDevicePropertyBufferFrameSize,
|
kAudioDevicePropertyBufferFrameSize,
|
||||||
|
@ -700,7 +700,7 @@ impl Device {
|
||||||
} else {
|
} else {
|
||||||
return Err(BuildStreamError::StreamConfigNotSupported);
|
return Err(BuildStreamError::StreamConfigNotSupported);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
SupportedBufferSize::Unknown => (),
|
SupportedBufferSize::Unknown => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -783,7 +783,7 @@ impl Device {
|
||||||
BufferSize::Fixed(v) => {
|
BufferSize::Fixed(v) => {
|
||||||
let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?;
|
let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?;
|
||||||
match buffer_size_range {
|
match buffer_size_range {
|
||||||
SupportedBufferSize::Range{min, max} => {
|
SupportedBufferSize::Range { min, max } => {
|
||||||
if v >= min && v <= max {
|
if v >= min && v <= max {
|
||||||
audio_unit.set_property(
|
audio_unit.set_property(
|
||||||
kAudioDevicePropertyBufferFrameSize,
|
kAudioDevicePropertyBufferFrameSize,
|
||||||
|
@ -794,7 +794,7 @@ impl Device {
|
||||||
} else {
|
} else {
|
||||||
return Err(BuildStreamError::StreamConfigNotSupported);
|
return Err(BuildStreamError::StreamConfigNotSupported);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
SupportedBufferSize::Unknown => (),
|
SupportedBufferSize::Unknown => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue