BankName property?
BankName property?
- Subject: BankName property?
- From: Jeremy Sagan <email@hidden>
- Date: Mon, 19 Jan 2004 23:02:48 -0500
Hello Chris/Bill,
I am trying to use the kMusicDeviceProperty_BankName property to
retrieve the bank name from the DLS plug-in. I do not have any
documentation on this call other than what Bill had written to the list
specifying that it returns a CFStringRef. So based on the instrument
name call I presumed (incorrectly I guess) that the bank number would
be passed in the element slot like so:
err = AudioUnitGetPropertyInfo(au, kMusicDeviceProperty_BankName,
kAudioUnitScope_Global, thisBank, &outDataSize, &outWritable);
if (outDataSize == sizeof(CFStringRef))
{
CFStringRef temp;
err = AudioUnitGetProperty(au, kMusicDeviceProperty_BankName,
kAudioUnitScope_Global, thisBank, &temp, &outDataSize);
......
CFRelease(temp)
}
This code works but always returns "Quicktime Music Synthesizer" as the
CFStringRef. How do I pass in the bank number? Or more importantly how
can I retrieve the Bank name corresponding to a MIDI bank number from
the current SoundFont?
Thanks,
Jeremy
_______________________________________________
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.