Re: Rendering differences between simulator and device
Re: Rendering differences between simulator and device
- Subject: Re: Rendering differences between simulator and device
- From: William Stewart <email@hidden>
- Date: Sat, 28 Aug 2010 15:12:46 -0700
i wouldn't expect this difference. I think i would ascertain if the samples you are providing are correct, or there are glitches, or there is an overload. I'd also try plugging in heapdhones to the iMac, in and see if that changes anything.
to ascertain that the samples you provide are good, you can "record" the output of the mixer. Have a look at the CAAudioUnitOutputCapturer.h file in PublicUtility (but please remember to change the ExtAudioFileWrite call to ExtAudioFileWriteAsynch). You could then look at that output and see if there are any glitches there - if there are, then you can figure out where they are coming from.
Bill
On Aug 28, 2010, at 6:50 AM, Antonio Nunes wrote:
> I'm developing an app using remoteIO on the iPad. When I run the app in the simulator artefacts can be heard (clicks, pops, noise). When I run the app on the device, audio is perfect. Should I be concerned that something is amiss with my rendering logic, or can such a discrepancy be expected under certain circumstances?
>
> Essentially, I have a buffer of samples that is read by the rendering callback. I keep it filled through a loop in another thread. I have satisfied myself that the buffer never runs out of samples. (Which would be weird to happen on the much faster Core i5 iMac, yet not on the iPad.) To be more specific: there are actually up to four buffers and up to four busses. I use a multi channel mixer to mix the busses together. There is only ever one loop filling the buffers. The artefacts can however be heard whether I run the code with a single buffer or with multiple buffers (one or more voices).
>
> Is it a known fact that the simulator can be undependable for audio rendering and can I continue my development without worrying about these glitches, or this is something that needs fixing? (In which case I would appreciate any hints as to possible causes and avenues of investigation.)
>
> Best,
> António
>
> ----------------------------------------------------
> Disapprove of sin but not of the sinner
> ----------------------------------------------------
>
>
> _______________________________________________
> 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
_______________________________________________
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