RE: Bad access with reference within mixer callback
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