• 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
Steps to loading a SoundFont?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Steps to loading a SoundFont?


  • Subject: Steps to loading a SoundFont?
  • From: "ash oakenfold" <email@hidden>
  • Date: Mon, 30 Jun 2008 15:28:17 -0700

Hi,

I can play/hear notes using the default music device. When I try to load a custom SoundFont, I hear the same default piano.

// ... create graph ...
// ... get synth unit ....

FSRef fsRef;
FSPathMakeRef ((const UInt8*)"~/Library/Audio/Sounds/Banks/foo.sf2", &fsRef, 0);

AudioUnitSetProperty (synthUnit,
                                kMusicDeviceProperty_SoundBankFSRef,
                                kAudioUnitScope_Global,
                                0,
                                &fsRef,
                                sizeof(fsRef));

// ... initialize graph ...
// ... start graph ...

What step(s) am I missing?

-Ash
 _______________________________________________
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: We are also looking for a CoreAudio, OpenGL, and OpenAL developer
  • Previous by thread: We are also looking for a CoreAudio, OpenGL, and OpenAL developer
  • Index(es):
    • Date
    • Thread