• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ExtAudioFileRead() + mp3 + 10.5 Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ExtAudioFileRead() + mp3 + 10.5 Crash


  • Subject: ExtAudioFileRead() + mp3 + 10.5 Crash
  • From: patrick machielse <email@hidden>
  • Date: Sat, 27 Oct 2007 19:10:25 +0200

Hi,

I'm using the ExtAudioFile API to read audio files in an offline processing context. The readCallback function provides the audio date for the first AudioUnit in my graph. This has worked (and continues to work) great on 10.4.x. On Leopard I'm experiencing a crash when reading mp3 files. All other file formats my program supports (aac aiff wav) seem to work fine.


The relevant code: ------------------ OSStatus readCallback(void * enhancer, AudioUnitRenderActionFlags * ioActionFlags, const AudioTimeStamp * inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList * ioData) { ...

    //  DEBUG
    SInt64 offset;
    ExtAudioFileTell(myFileRef, &offset);
    printf("offset: %lld\n", offset);

    //  fill the buffer with audio data
    UInt32 readFrames = inNumberFrames;
    OSStatus error = ExtAudioFileRead(myFileRef, &readFrames, ioData);


What happens:
-------------
A crash always occurs at offset 1176576. It is reproducible with is true of all mp3 I've thrown at it. This situation is quite bad because it effects 90% of the typical use of my program. I've gone over my usage of the ExtAudioFile API, but it is so simple to use that I can't imagine where I went wrong (could be I'm just not very imaginative...).



Top of the stack on impact:
---------------------------
#0 0x90e6b9b6 in MPEGAudioFile::ReadPackets ()
#1 0x90e764fd in AudioFileReadPackets ()
#2 0x90e8dba2 in ExtAudioFile::ReadInputProc ()
#3 0x90dfe08a in AudioConverterChain::DirectCallInputProc ()
#4 0x90dfdf2b in CodecConverter::CallInputProc ()
#5 0x90dfd95d in CodecConverter::DecoderFillBuffer ()
#6 0x90df2371 in BufferedAudioConverter::GetInputBytes ()
#7 0x90df222d in CBRConverter::RenderOutput ()
#8 0x90df1f9c in BufferedAudioConverter::FillBuffer ()
#9 0x90df2124 in AudioConverterChain::RenderOutput ()
#10 0x90df1f9c in BufferedAudioConverter::FillBuffer ()
#11 0x90e07943 in AudioConverterFillComplexBuffer ()
#12 0x90e9074d in ExtAudioFile::Read ()
#13 0x90e83db9 in ExtAudioFileRead ()
#14 0x000101b1 in readCallback (enhancer=0x8b9e00, ioActionFlags=0xb01d8ddc, inTimeStamp=0xc4ec8d0, inBusNumber=0, inNumberFrames=512, ioData=0xd31f1e0)


Grateful for any insights,

patrick
---
Hieper Software

_______________________________________________
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


  • Prev by Date: Re: Help needed for Audio Unit Parameter Change Notification
  • Next by Date: Re: Simple Question on m4a CAStreamBasicDescription and Recording
  • Previous by thread: Re : Help Needed for Audio Unit Parameter Change Notification
  • Next by thread: Re: ExtAudioFileRead() + mp3 + 10.5 Crash
  • Index(es):
    • Date
    • Thread