Re: BankName property?
Re: BankName property?
- Subject: Re: BankName property?
- From: William Stewart <email@hidden>
- Date: Wed, 21 Jan 2004 11:52:24 -0800
This name is only a read property that tells you the name of the
current loaded sound bank in the synth. There's an API in
AudioToolbox.h to get the name of any sound bank file (DLS/SF2)
It doesn't give you names for the different banks of patches that might
be contained within this single sound bank file (ie. names of different
MIDI selectable banks)
Bill
On 19/01/2004, at 8:02 PM, Jeremy Sagan wrote:
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.