Skip to content

Commit

Permalink
Force channel capabilities to no input, mono output
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag committed Apr 3, 2024
1 parent d46c0a5 commit 07e76c4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public class ATDriverGenericMacOSExtensionAudioUnit: AVSpeechSynthesisProviderAu
logger.log("initialized")
}

public override var channelCapabilities: [NSNumber]? {
// Specifies that the Audio Unit supports no input channels and exactly one output channel.
return [0, 1]
}

deinit {
messenger.invalidate()
}
Expand Down

0 comments on commit 07e76c4

Please sign in to comment.