• 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
Re: Core Audio and Soundfonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Audio and Soundfonts


  • Subject: Re: Core Audio and Soundfonts
  • From: Bryan Brooks <email@hidden>
  • Date: Thu, 29 Nov 2007 07:35:55 -0800 (PST)

Everytime I do it that way I get kAudioUnitErr_Uninitialized.  I don't understand how the AudioUnit that is used to load a new SoundFont the function before AudioUnitGetProperty() is now uninitialized.  Even after removing the function that sets the SoundFont I still get the same error.  Any suggestion?

Thanks
Bryan

----- Original Message ----
From: William Stewart <email@hidden>
To: Bryan Brooks <email@hidden>
Cc: email@hidden
Sent: Wednesday, November 28, 2007 4:43:11 PM
Subject: Re: Core Audio and Soundfonts

that should work fine

On Nov 28, 2007, at 1:23 PM, Bryan Brooks wrote:

I'm writing a program that is using user specified SoundFonts to play Midi using an instrument from that SoundFont.  I'm trying to compile a list of the instruments contained within the SoundFont.  I'm messing around in the example provided in CoreAudio/SimpleSDK/PlaySoftMIDI.  I thought by using:

UInt32 bankNum = 0;
UInt32 sizeBankNum = sizeof(bankNum);

 AudioUnitGetProperty(synthUnit, kMusicDeviceProperty_InstrumentCount, kAudioUnitScope_Global, 0, &bankNum, &sizeBankNum);

I would be able to get the number of instruments contained within the SoundFont.  Am I wrong in this assumption?  If I am does anyone have any suggestions.

Thanks
Bryan


Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (Never miss a thing. Make Yahoo your homepage.
 _______________________________________________
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: Re: Problem adding a background NSImageView in a Cocoa View AU?
  • Next by Date: Re: download auval?
  • Previous by thread: Re: Core Audio and Soundfonts
  • Next by thread: Re: Problem adding a background NSImageView in a Cocoa View
  • Index(es):
    • Date
    • Thread