Re: [coreAudio] Detecting corrupted files
Re: [coreAudio] Detecting corrupted files
- Subject: Re: [coreAudio] Detecting corrupted files
- From: Brian Whitman <email@hidden>
- Date: Wed, 8 Mar 2006 15:30:07 -0500
One option is for your main process fork off a UNIX helper process
that tries to read the MP3 file. The main and helper processes use
a shared variable to signal how the fileread is coming along.
That, I think, is the only possible workaround right now, although
it's worse because it's not just that it spins in a loop, it eats up
all available RAM while it does it and eventually crashes trying to
alloc more. The files that it breaks on are corrupted, the frames are
all mangled. There's probably a way to go into the bytes of the mp3
and do some 'correctness' check on them before calling the read
function.
We are probably going back to QT for the moment just for reading. I
will say I've only found a handful of these problem files among our
testbed of ca. 100K files.
_______________________________________________
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