Re: [coreAudio] Detecting corrupted files
Re: [coreAudio] Detecting corrupted files
- Subject: Re: [coreAudio] Detecting corrupted files
- From: Doug Wyatt <email@hidden>
- Date: Tue, 7 Mar 2006 12:41:52 -0800
On Mar 7, 2006, at 12:14, Alexander v. Below wrote:
on it, each time getting "no error". The returned source format is:
mSampleRate 12000
mFormatID '.mp3'
mFormatFlags 0
mBytesPerPacket 0
mFramesPerPacket 576
mBytesPerFrame 0
mChannelsPerFrame 2
mBitsPerChannel 0
Should this be giving me a hint, i.e. mBytesPerPacket == 0 and
mBytesPerFrame == 0, that this file is potentially junk and I
should discontinue to work with it?
no
Could someone briefly add up which parameters have to be set to
make something a valid file?
it varies depending on the format ...
For the experts, this is the stack trace where the call hangs:
#0 0x9004a86c in pread ()
#1 0x90b45bcc in BasicRead ()
#2 0x90b45904 in PBReadForkSync ()
#3 0x90b45864 in FSReadFork ()
#4 0x94101fec in MacFile_DataSource::ReadBytes ()
#5 0x941026f8 in Cached_DataSource::ReadBytes ()
#6 0x9415cfc8 in MP3AudioFile::UpdatePacketTable ()
#7 0x94103ce8 in MP3AudioFile::GetProperty ()
#8 0x940f1564 in AudioFileGetProperty ()
There are some known bugs in this area ... would you please submit a
bug report and attach the problem audio file? Or if you'd prefer,
please email the file to me offlist. It would be good to be able to
test against some failure cases like this.
Thanks
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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