Hello,

I can't figure out how to make the AUMIDISynth MusicDevice
(kAudioUnitType_MusicDevice, kAudioUnitSubType_MIDISynth) change its
instrument on iOS. In the simulator, sending the following message...

UInt32 command = 0xC0 | 0;
UInt32 instrument = arc4random_uniform(100);
MusicDeviceMIDIEvent(self.samplerUnit, command, instrument, 0, 0);

...works fine. On device, however, the synth just goes mute after
receiving the message. (The first instrument in the soundfont —
usually piano — does load correctly, however.) Is this a bug? If so,
is there any way to work around it?

Here's a simple test case based on the LoadPreset demo:
https://github.com/archagon/ios-midisynth-program-change-bug-demo
You can tap the middle button to change to a random instrument.

Thank you,
-Alexei

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to