• 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
auval question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

auval question


  • Subject: auval question
  • From: patrick machielse <email@hidden>
  • Date: Sun, 8 Jul 2007 21:57:32 +0200

Hi,

Im creating an effect Audio Unit which needs to processes 2 channels at a time, therefore I override ProcessBufferLists() and do not use kernels. My effect's processing algorithm needs to 'look ahead' in the audio data, and it does so by repeatedly calling GetInput(0)- >PullInput() in ProcessBufferLists(). This looks somewhat like:

//  while we need more data pull in some from the input
//  'pulledFrames' is an instance variable, initialized to 0

AudioTimeStamp pullTime;
pullTime.mFlags      = kAudioTimeStampSampleTimeValid;
pullTime.mSampleTime = pulledFrames;

ComponentResult result = GetInput(0)->PullInput(ioActionFlags, pullTime, 0, 512);
if ( result ) {
return result;
}
pulledFrames += 512;


//  use the data
//  ...

I believe this approach works...

Now, when I run auval it returns the following error as soon as the second slice of data is pulled from the input:

"ERROR: AU is not passing time stamp correctly. Was given: 0, but input received: 512"

I'm not sure what to make of this. I'm purposely pulling in with the given sample time, and at that point I've already pulled in a slice starting at sample time 0. Is this an error in my Audio Unit? Just ignoring the error doesn't feel quite right. Is there an option to suppress this error?

patrick
_______________________________________________
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


  • Follow-Ups:
    • Re: auval question
      • From: William Stewart <email@hidden>
  • Prev by Date: Logic + outDeltaSampleOffsetToNextBeat
  • Next by Date: Re: Basic sample code for FFT audio frequency spectrum? Sarcasm Maybe? Thank You...
  • Previous by thread: Logic + outDeltaSampleOffsetToNextBeat
  • Next by thread: Re: auval question
  • Index(es):
    • Date
    • Thread