Re: [coreAudio] Detecting corrupted files
Re: [coreAudio] Detecting corrupted files
- Subject: Re: [coreAudio] Detecting corrupted files
- From: "Alexander v. Below" <email@hidden>
- Date: Wed, 8 Mar 2006 21:45:31 +0100
Am 08.03.2006 um 21:30 schrieb Brian Whitman:
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.
Pardon my language, but "F%ยง#". Forking a process sounded like a
somewhat awkward, but workable solution. But if even that may case a
crash... Oh joy
I am trying to convert the files to linear PCM. Could QuickTime help
me there? Or could I call a QuickTime function to give me an
indication if the file is damaged or not?
Thanks
Alex
_______________________________________________
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