AUMIDIController questions
AUMIDIController questions
- Subject: AUMIDIController questions
- From: Robert Grant <email@hidden>
- Date: Fri, 15 Nov 2002 08:26:36 -0500
I'm trying to use the AUMIDIController functions to support Marc's
MusicEffect
units. Trouble is that no MIDI data seems to be making it to the effect.
Here's how I'm creating the controller and connecting it to the effect:
status = AUMIDIControllerCreate(NULL, &m_midiController);
NSLog(@"ControllerCreate status: %d", status);
status = AUMIDIControllerMapChannelToAU(
m_midiController,
m_channel,
[self unit],
m_channel,
FALSE);
NSLog(@"ControllerMapChannel status: %d", status);
Both of these are returning '0'. (m_channel defaults to -1) ([self
unit] returns the AU).
BTW I've tried both TRUE & FALSE settings.
Later I connect a MIDI source:
status = AUMIDIControllerConnectSource(m_midiController,
MIDIGetSource(m_source + 1));
NSLog(@"ControllerConnectSource status: %d", status);
This also is returning '0'
Here's a dump from a run to demonstrate:
2002-11-15 08:24:07.471 Rax[518] ControllerCreate status: 0
2002-11-15 08:24:07.471 Rax[518] ControllerMapChannel status: 0
2002-11-15 08:24:11.501 Rax[518] ControllerConnectSource status: 0
And yet I'm getting nothing... Am I misusing it somehow?
I'd really like to get MusicEffect support working for Rax :-)
Thanks,
Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.