Re: Detecting dropouts?
Re: Detecting dropouts?
- Subject: Re: Detecting dropouts?
- From: Jeff Moore <email@hidden>
- Date: Mon, 28 Jan 2002 12:01:17 -0800
on 1/28/02 10:22 AM, Jim Dolan <email@hidden> wrote:
>
I am try to put together an algorithm that will detect hardware underruns in
>
the IOProcs. During playback undderuns can happen in two ways...
>
>
1) The IOProc is not called in time and creates a gap in the sample stream.
>
>
This one seams easy enough to calculate using the timestamp
>
information presented in the IOProc, but how do I detect #2?
>
>
2) I run out of time in the IOProc and fail to transfer all of my samples to
>
the output buffers.
>
If I put some print statements in the IOProc, I'll hear dropouts.
>
What is the best way to programmatically detect this situation?
Both situations will trigger a kAudioDeviceProcessorOverload notification,
or at least they should.
--
Jeff Moore
Core Audio
Apple