• 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: Newbie problems Cocoa, objective-C using CoreAudio C libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries


  • Subject: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
  • From: Peter Rebholz <email@hidden>
  • Date: Thu, 23 Oct 2008 18:29:02 -0500

On Oct 23, 2008, at 5:31 PM, Craig Lewiston wrote:

It looks like the problem is due to pAqData being an invalid object.
I was able to isolate the error by calling
AudioFileID testaudiofile = [pAqData mAudioFile];
right after declaring pAqData:
AQRecorderState *pAqData = (AQRecorderState *) aqData;
which returned the same error from before.

So, it's clear to me that I have a problem linking the incoming aqData
pointer to pAqData.  Could someone help me understand what is
happening in that line of code?  Here is the full header again to the
callback function and the first line of its code:

You are passing an instance of your queue state object as the inUserData parameter when you register your callback, correct?


Are you sure you haven't accidentally released your object somewhere else? Passing the object as the user data parameter won't retain it so if you created it, setup the callback then released it your object would have been deallocated.

_______________________________________________
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: 
 >Newbie problems Cocoa, objective-C using CoreAudio C libraries (From: "Craig Lewiston" <email@hidden>)
 >Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries (From: John Zorko <email@hidden>)
 >Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries (From: "Craig Lewiston" <email@hidden>)
 >Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries (From: "Craig Lewiston" <email@hidden>)

  • Prev by Date: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
  • Next by Date: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
  • Previous by thread: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
  • Next by thread: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
  • Index(es):
    • Date
    • Thread