We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e143e87 commit c74e829Copy full SHA for c74e829
src/backend/mod.rs
@@ -3783,7 +3783,16 @@ impl<'ctx> CoreStreamData<'ctx> {
3783
let r = audio_unit_get_property(
3784
self.output_unit,
3785
kAudioUnitProperty_StreamFormat,
3786
- kAudioUnitScope_Input,
+ if using_voice_processing_unit {
3787
+ // With a VPIO unit the output scope includes all channels in the hw.
3788
+ // The VPIO unit however is only MONO which the input scope reflects.
3789
+ kAudioUnitScope_Input
3790
+ } else {
3791
+ // With a HAL unit the output scope for the output bus returns the number of
3792
+ // output channels of the hw, as we want. The input scope seems limited to
3793
+ // two channels.
3794
+ kAudioUnitScope_Output
3795
+ },
3796
AU_OUT_BUS,
3797
&mut output_hw_desc,
3798
&mut size,
0 commit comments