Update to use coreaudio-sys 0.11 (#706)

This commit is contained in:
Pedro Tacla Yamada 2022-11-09 22:26:06 +11:00 • committed by GitHub
parent edecb26ff3
commit 56f54cb0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -388,9 +388,9 @@ impl Device {
_ => return Err(DefaultStreamConfigError::StreamTypeNotSupported),
};
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,
asbd.mBytesPerFrame,
asbd.mBitsPerChannel,
);
match maybe_sample_format {
Some(coreaudio::audio_unit::SampleFormat::F32) => SampleFormat::F32,