• 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: Beginner Problem w/ Core Audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beginner Problem w/ Core Audio


  • Subject: Re: Beginner Problem w/ Core Audio
  • From: Chris Adamson <email@hidden>
  • Date: Tue, 09 Oct 2012 09:49:00 -0400

Nick--

It's probably this known erratum: 


CH07_AUGraphSineWave/
main.c
----------------------
Changed line 96 from:
input.inputProcRefCon = &player;
to
input.inputProcRefCon = player;
to correct the pointer type of player, and eliminate a crash when the sleep() exits.
(thanks Stefan Frauenfelder and Dmitri Kharlamov)


More errata on the book's home page at http://www.informit.com/store/product.aspx?isbn=0321636848 , along with an updated sample code zip.

Please continue to let us know as you find stuff.

--Chris


On Oct 9, 2012, at 9:41 AM, n ketter <email@hidden> wrote:

Hi all,

I'm working through the Adamson and Avila book on Core Audio and finished the Chapter 7 AUGraphSineWave project. I'm having the following issue with both my version of the code and the sample code provided w/ the book.

The program stops just after the sine wave plays, with the error:

Thread 1: EXC_BAD_INSTRUCTION (code=12, subcode=0x0)

The program stops on the call to AudioOutputUnitStop(player.outputUnit); however when I comment out that line and even the following two lines I get the same error when the program hits thereturn 0; at the bottom.

The nature of the error leads me to think there might be an issue with trying to access the outputUnit member of the player struct, however nowhere do I free or release this memory, so I'm not sure why it would be missing.

Any ideas for what might be causing this or how to troubleshoot?

Thanks in advance,

Nick

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: 
 >Beginner Problem w/ Core Audio (From: n ketter <email@hidden>)

  • Prev by Date: Beginner Problem w/ Core Audio
  • Next by Date: Re: Please help MIDI on IOS is driving me insane!
  • Previous by thread: Beginner Problem w/ Core Audio
  • Next by thread: Multiroute Audio Problem
  • Index(es):
    • Date
    • Thread