• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
There are no Ports in the AMS(Audio MIDI setup)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

There are no Ports in the AMS(Audio MIDI setup)


  • Subject: There are no Ports in the AMS(Audio MIDI setup)
  • From: wayne fan <email@hidden>
  • Date: Fri, 16 Jan 2009 17:00:41 +0800
  • Importance: Normal

I am working on a MIDI plugin of a audio device. The plugin can be loaded by AMS. But There're no ports shown in the AMS.
And I have checked the code, it seems that the source and destination endpoints counts are always equal to zero.
These values come from the CoreMIDI API commands. However I can only get some CoreMIDI structs' names, and could not see the details fields of the structs.

Also I have checked the log of the driver, there's no midi data have been transferred into the kerenel driver.?
The?MIDIDeviceRef?comes from the following code, not from calling?MIDIDeviceCreate,MIDIDeviceAddEntity and?MIDISetupAddDevice.

Any one can give some hints? Thanks

- (MIDIDeviceRef) fetchMIDIDeviceForService:(DIIO KitService *)kitDevice

{

MIDIDeviceRef device = NULL;

TDriverMIDIDeviceList?? ? ? ? ? deviceList(fMIDIDriver);

NSString * guidString;

NSNumber * guidNumber;

MIDIDeviceRef checkMIDIDevice;


guidNumber = [kitDevice propertyForKey:@"GUID"];

guidString = [NSString stringWithFormat:@"%llX", [guidNumber unsignedLongLongValue]];

// Find the device in the current MIDI environment

while( deviceList.Next(checkMIDIDevice) )

{

.......

status = MIDIObjectGetStringProperty( checkMIDIDevice, kDeviceGUIDPropertyName, (CFStringRef *)&deviceGUID );

if( status == noErr )

{

if( [guidString isEqualToString:deviceGUID] )

{

device = checkMIDIDevice;

}

...

}

else?......

}

......

}




See all the ways you can stay connected to friends and family

See all the ways you can stay connected to friends and family
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Audio Queue : Fade Out
  • Next by Date: Re: Turning on 8.24 audio for iPhone
  • Previous by thread: Audio Queue : Fade Out
  • Next by thread: RE: There are no Ports in the AMS(Audio MIDI setup)
  • Index(es):
    • Date
    • Thread