We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5090ee commit 4696fadCopy full SHA for 4696fad
src/coreaudiodevice.rs
@@ -337,9 +337,9 @@ fn open_coreaudio_capture(
337
338
if let Some(sfmt) = sample_format {
339
let phys_format = match *sfmt {
340
- CoreAudioSampleFormat::S16 => coreaudio::audio_unit::SampleFormat::S16,
341
- CoreAudioSampleFormat::S24 => coreaudio::audio_unit::SampleFormat::S24,
342
- CoreAudioSampleFormat::S32 => coreaudio::audio_unit::SampleFormat::S32,
+ CoreAudioSampleFormat::S16 => coreaudio::audio_unit::SampleFormat::I16,
+ CoreAudioSampleFormat::S24 => coreaudio::audio_unit::SampleFormat::I24,
+ CoreAudioSampleFormat::S32 => coreaudio::audio_unit::SampleFormat::I32,
343
CoreAudioSampleFormat::F32 => coreaudio::audio_unit::SampleFormat::F32,
344
};
345
0 commit comments