• 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: Why a simple aif file doesn't play?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why a simple aif file doesn't play?


  • Subject: Re: Why a simple aif file doesn't play?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 10 Feb 2009 09:20:01 -0800

Where does it crash? What line of your app is active?

One problem with the code is that you're not giving it any time to play the file! You start the queue and then immediately stop it. You need to let the queue run until it gets to the end of the audio; your callback can determine when it's time to do that.

Did you look at the AudioQueueTools example in /Developer/Examples/ CoreAudio? It demonstrates how to play an audio file using a queue.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Why a simple aif file doesn't play? (From: Gabriele Palmas <email@hidden>)

  • Prev by Date: Re: How to configure AudioConverter to write VBR?
  • Next by Date: AudioQueueStop hangs
  • Previous by thread: Why a simple aif file doesn't play?
  • Next by thread: AudioQueueStop hangs
  • Index(es):
    • Date
    • Thread