-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-channel output for the CoreAudio driver. #1081
Multi-channel output for the CoreAudio driver. #1081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks pretty excellent. Thank you! I have some minor comments below. And I'm pinning @pedrolcl as he might be interested in this change as well.
I don't use macOS anymore. My MBP is useless after the update to Catalina, so I'm planning to install Linux on it. Bye, bye, Apple! |
…re more outputs than specified in the channel map. FluidSynth#1081 (comment)
…p setting documentation to be consistent with other entries.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank You!
Hi, this pull request does two things:
Enable the synth.audio-channels and synth.audio-groups settings to work with CoreAudio as they do on other platforms.
AudioStreamBasicDescription
, which was hardcoded as interleaved stereo. A nice efficiency improvement we can make here is adding thekAudioFormatFlagIsNonInterleaved
flag, which allows us to skip the allocation and interleave + copy step and pass the buffers filled by the fluidsynth render callback directly.Adds a audio.coreaudio.channel-map setting to make use of CoreAudio's standard channel mapping facility to arbitrarily route output channels.
As an example of why these changes are helpful, I use them for live performances to route MIDI instruments, samples, and cues to different channels on a digital rack mixer where they can be adjusted by a front-of-house sound engineer as if they were separate instruments.