auval question
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