Re: kAudioFileUnspecifiedError
Re: kAudioFileUnspecifiedError
- Subject: Re: kAudioFileUnspecifiedError
- From: patrick machielse <email@hidden>
- Date: Tue, 4 Nov 2008 20:52:36 +0100
Op 4 nov 2008, om 02:20 heeft William Stewart het volgende geschreven:
On Nov 3, 2008, at 2:48 PM, patrick machielse wrote:
I'm trying to track down an error in my CoreAudio based
application. Since it only happens to users (I cannot reproduce the
problem) and might be restricted to 10.4.11, the information I have
is not very detailed yet.
What I do know is that at some point ExtAudioFileRead() returns
kAudioFileUnspecifiedError ('wht?'). ExtAudioFileRead() is called
in a readCallback, registered with the first AudioUnit on a simple
AUGraph. I process audio data (offline, not real time) by calling
AudioUnitRender() in a loop. It seems that the error happens at the
end of a file (or possibly even after I've exited the render
loop...?)
The error value itself is not very discriptive (to say the least,
it's more like a taunt...). It would be very helpful to know under
which conditions ExtAudioFileRead() might return an
kAudioFileUnspecifiedError.
if you are trying to read 0 packets - that is nothing - from the
file. I would check the parameters you are passing to the read call
That can't be it, I think. I'm always reading 5120 frames at a time.
The inExtAudioFile is released only after I exit the processing loop.
ioData is also guaranteed to be a valid pointer.
patrick
--
Patrick Machielse
Hieper Software
http://www.hieper.nl
email@hidden
_______________________________________________
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