• 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
Getting error when calling SoundEngine_LoadEffect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting error when calling SoundEngine_LoadEffect


  • Subject: Getting error when calling SoundEngine_LoadEffect
  • From: Edward de Jong <email@hidden>
  • Date: Mon, 4 Aug 2008 00:42:34 -0700


I am trying to play a background sound in my cocoa application (destined to run on the ip. simulator), and I am doing
a very simple sequence of calls:

SoundEngine_Initialize(44100);
SoundEngine_SetListenerPosition(0.0, 0.0, 1.0);
SoundEngine_LoadEffect([[mainBundle pathForResource:@"Failure" ofType:@"caf"] UTF8String], &guitar_sound_id);

however the last call to LoadEffect gets an error in the console "Error generating buffer : a002", and then
"Error loading looping file info: 40962"

I had assumed that the call to SoundEngine_Initialize would do the trick in terms of allocating buffers.
Or does SoundEngine depend on OpenGL?  That is the only thing I could think of, but why would a sound system use OpenGL?

Anyway is there some other magical incantation that will make SoundEngine work? it seems like a nice helper program with a straightforward API that seems a lot easier than interacting with the Audio Queue manager; I just want to make some sound effects in my game, and also play some background music, and the system sound API is only for short sounds, so I gotta master Core Audio one way or the other.  Heck the old sound manager was a nasty piece of work but I eventually figured it out, and sure would like to get sounds emitting... already exhausted myself one whole day on this!

any help is greatly appreciated.



 _______________________________________________
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: Extract data from AIFF file to compute FFT
  • Next by Date: Re: Extract data from AIFF file to compute FFT
  • Previous by thread: Re: AudioConverter.h
  • Next by thread: Re: Wrap .aac into .m4a container
  • Index(es):
    • Date
    • Thread