• 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
BankName property?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: BankName property?
      • From: William Stewart <email@hidden>
  • Prev by Date: Piping QuickTime to CoreAudio
  • Next by Date: Re: Piping QuickTime to CoreAudio
  • Previous by thread: Re: built-in AUs?
  • Next by thread: Re: BankName property?
  • Index(es):
    • Date
    • Thread