Update to use coreaudio-sys 0.11 (#706)
This commit is contained in:
parent
edecb26ff3
commit
56f54cb0b3
2 changed files with 4 additions and 4 deletions
|
|
@ -44,10 +44,10 @@ mach = "0.3" # For access to mach_timebase type.
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
coreaudio-rs = { version = "0.10", default-features = false, features = ["audio_unit", "core_audio"] }
|
coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "ios")'.dependencies]
|
[target.'cfg(target_os = "ios")'.dependencies]
|
||||||
coreaudio-rs = { version = "0.10", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
|
coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "emscripten")'.dependencies]
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
||||||
wasm-bindgen = { version = "0.2.58" }
|
wasm-bindgen = { version = "0.2.58" }
|
||||||
|
|
|
||||||
|
|
@ -388,9 +388,9 @@ impl Device {
|
||||||
_ => return Err(DefaultStreamConfigError::StreamTypeNotSupported),
|
_ => return Err(DefaultStreamConfigError::StreamTypeNotSupported),
|
||||||
};
|
};
|
||||||
let maybe_sample_format =
|
let maybe_sample_format =
|
||||||
coreaudio::audio_unit::SampleFormat::from_flags_and_bytes_per_frame(
|
coreaudio::audio_unit::SampleFormat::from_flags_and_bits_per_sample(
|
||||||
flags,
|
flags,
|
||||||
asbd.mBytesPerFrame,
|
asbd.mBitsPerChannel,
|
||||||
);
|
);
|
||||||
match maybe_sample_format {
|
match maybe_sample_format {
|
||||||
Some(coreaudio::audio_unit::SampleFormat::F32) => SampleFormat::F32,
|
Some(coreaudio::audio_unit::SampleFormat::F32) => SampleFormat::F32,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue