• 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: Bad access with reference within mixer callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bad access with reference within mixer callback


  • Subject: RE: Bad access with reference within mixer callback
  • From: Hari Karam Singh <email@hidden>
  • Date: Mon, 13 Feb 2012 15:20:16 +0000
  • Expiry-date: Thu, 12 Apr 2012 23:00:00 +0000
  • Organization: AncientBohemia Ltd.

Hi Espen,

 

These lines seem odd together:

 

   MixerHostAudio* THIS = (MixerHostAudio *)inRefCon;
   soundStructPtr    soundStructPointerArray   = (soundStructPtr) inRefCon;
          

inRefCon is what you pass to the callback, designated when you define the AURenderCallbackStruct (it’s inputProcRefCon member).  THIS is not some fancy keyword, just a convention that somebody used and which stuck.  I think it’s unlikely to be a MixerHostAudio anyway…


       THIS.timeIntoBeat = sampleNumber;  //this is where i get the bad access

 

Is timeIntoBeat a property you created on a class?   It’s not a member of MixerHostAudio (https://developer.apple.com/library/ios/#samplecode/MixerHost/Listings/Classes_MixerHostAudio_h.html).  Perhaps it’s a member of your soundStructPtr? 

 

Gratefully,

Hari Karam Singh

 

 

 _______________________________________________
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: 
 >Bad access with reference within mixer callback (From: Espen Kluge <email@hidden>)

  • Prev by Date: Re: Threading Question
  • Next by Date: RE: Max simultaneous source count with Remote I/O Callback much lower than with OpenAL
  • Previous by thread: Bad access with reference within mixer callback
  • Next by thread: RE: Bad access with reference within mixer callback
  • Index(es):
    • Date
    • Thread