• 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
can System Sound Services and AudioQueues be used together on iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can System Sound Services and AudioQueues be used together on iPhone?


  • Subject: can System Sound Services and AudioQueues be used together on iPhone?
  • From: "Andrew E. Davidson" <email@hidden>
  • Date: Wed, 11 Feb 2009 16:00:52 -0800

I have a play along app that is built on top of AudioQueues. Now I want to add a 4 beat count in before the song begins. (tick, tick, tick, tock, play)

 

Seems like it should be fairly easy

 

set up the AudioQueues

set up System Sound to play tick

While ( count < 4 ) {

            Play system sound

            [NSThread  sleepUntilDate:my date ]

}

AudioSessionSetActive ( true )

Start AudioQueue

 

I hear the system sound play as expected. How ever just after the AudioQueue start call I get a “exc_bad_access”

 

Looking at the stack in the debugger is not very helpful.

Objc_msgSend

NSPopAutoreleasePool

_UIAppplicationHandleEvent

SendEvent

PurpleEventTimerCallBack

CFRunLoopRunSpecific

CFRunLoopRunInMode

GSEventRun

-[UIApplication _run]

main

 

Any idea how I can track this bug down?

 

Is there a better way to implement this functionality?

 

Thanks

 

Andy

 

 


Replace Ads with your Stuff! Learn how @  www.prowebsurfer.com

 

 _______________________________________________
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: linear pcm: 16 or 32 bits?
  • Next by Date: Re: Loop Audio on iPhone
  • Previous by thread: Re: Changing Output Device in Audio Queue Services
  • Next by thread: AudioConverter
  • Index(es):
    • Date
    • Thread