• 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
Sample gaps in the IOProc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sample gaps in the IOProc?


  • Subject: Sample gaps in the IOProc?
  • From: Jeremy Sagan <email@hidden>
  • Date: Wed, 5 Mar 2003 03:43:38 -0500

What does it mean, when in successive calls to my Core Audio IO procedure the difference in inOutputTime-> mSampleTime is not equal to the completion (audio packet) size?

I am assuming this means my processor is too slow. Yes? Or is this caused by page faults?

Here is the pseudo code for checking for a glitch (gap). I left out the initialize code.

static OSStatus myIOProc ( AudioDeviceID inDevice, const AudioTimeStamp* inNow, const AudioBufferList* inInputData, const AudioTimeStamp* inInputTime, AudioBufferList* outOutputData, const AudioTimeStamp* inOutputTime, void* inClientData)

if (inOutputTime->mSampleTime - gCASampleTime != caCompletionSize)
{
Is this the source of an audio glitch?
gCASampleTime = inOutputTime->mSampleTime;
}

Jeremy
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Sample gaps in the IOProc?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: V2 DLS/Soundfont synth and clicks
  • Next by Date: Re: AudioUnitReset
  • Previous by thread: V2 DLS/Soundfont synth and clicks
  • Next by thread: Re: Sample gaps in the IOProc?
  • Index(es):
    • Date
    • Thread