difficulty with offline rendering
difficulty with offline rendering
- Subject: difficulty with offline rendering
- From: "Kevin Dixon" <email@hidden>
- Date: Mon, 7 Apr 2008 22:38:58 -0400 (EDT)
- Importance: Normal
Hi,
After a bit of hiatus from this project, I'm back at work on it.
I have basically cloned all of the rendering code from the
auprocess/CAAUProcessor example in my software (CAAUProcessor turned out
to be a bit of a pain to use, so I just replicated the steps it does).
Regardless, I have tried my code with both the AUTimePitch and
AUVarispeed, and I get the same result.
I am using a simple instantiated audio unit, which I have set a render
callback on.
When I do
AudioUnitRenderActionFlags actionFlags =
kAudioOfflineUnitRenderAction_Render;
err = AudioUnitRender(mVarispeedUnit, &actionFlags, &curTime, 0,
kNumFramesPerSlice, theAudioData);
The following mSampleTime and inNumFrames are requested from the callback
0 52
52 412
464 100
Then, it says Render action Complete, and returns no frames. OK, fine.
Again I call render, and it requests the same offest/number of frames from
the callback, and then returns 4294965248 frames.
I notice this is the same number it returns for OutputSize, however the
thing that confuses me is this is merely a 10 second file, and it has only
requested the first 564 frames.
If I don't do anything with the returned "frames", which btw crashes
ExtAudioFileWrite, and just let it go, it will pull these 3 frames
infinitely.
I increase my mSampleTime in my main struct by 512 each render call.
I'm just out of ideas. If anyone could review my source, that might be
helpful. Please contact offlist if you are interested.
Thanks,
-Kevin
_______________________________________________
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