Re: AUVarispeed usage question
Re: AUVarispeed usage question
- Subject: Re: AUVarispeed usage question
- From: "Kevin Dixon" <email@hidden>
- Date: Tue, 22 Apr 2008 18:44:32 -0400 (EDT)
- Importance: Normal
>
> So, in the auprocess example (CAAUProcessor.h/cpp) has different input
> callbacks to use for different types of audio units:
> Effects
> - you can work out the output size == input size + tail + latency
> (where you have to trim latency samples from the start)
> Offline
> - just provide input and keep pulling until the output tells you it
> is done
this is signaled by the kAudioOfflineUnitRenderAction_Complete flag, right?
I was using the aufc vs the auol to troubleshoot whatever my problem may
be. I don't really want to use the aufc version, because of the accuracy
issues you mention.
So far, I've only gotten actual output from the converter, while the
offline unit will return ~1073740800 frames on the first render call,
which then crashes ExtAudioFileWrite. This is after parsing about 600
frames of input.
If I use auprocess with the offline effect, I get this result:
mantra:~/Proggy/_test tones kcdixon$ ./auprocess -au auol vari appl -i
"udyo smpte.aif" -o "test.aif"
AudioUnit:0x890000
node=0 CAComponent: 0x10051, ComponentDescription: auol - vari -
appl, 0x10000000, 0x10051
Processing Format:
AudioStreamBasicDescription: 1 ch, 48000 Hz, 'lpcm' (0x00000029)
32-bit little-endian float, deinterleaved
| |
* * * * * * * * * * * * * * * * * * * * * * * * * reading past end of input
2008-04-22 18:39:24.718 auprocess[27752]: DebugAssert: Third Party Client:
result = processor.Render (outputList.ABL(), numFrames, isSilence,
&isDone, &needsPostProcessing) == 0 [-1 = kCFSocketError / qErr /
telGenericError / dsNoExtsMacsBug / kMovieLoadStateError / cdevGenErr /
truncErr / smTruncErr] home
[/Developer/Examples/CoreAudio/Services/AudioFileTools/auprocess.cpp:515]
Exit with bad result:-1
However, with the aufc, it processes the audio fine (though it takes about
3x longer)
Why would the offline unit crash and not the converter?
-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