• 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
Re: ExtAudioFileRead Crashing with MP3 file!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFileRead Crashing with MP3 file!


  • Subject: Re: ExtAudioFileRead Crashing with MP3 file!
  • From: William Stewart <email@hidden>
  • Date: Thu, 24 May 2007 10:32:38 -0700

How are you allocating the buffer? I suspect that the problem is in the way the ABL you are using is not-matching the client format (the format you ask the ExtAF to give you data in). (It is a little tricky to get right sometimes).

In the /Developer/Examples/CoreAudio/PublicUtility directory there is an AUOutputBL class that might help you with this. There is also in the SimpleSDK directory a version of the ConvertFile code that uses ExtAF, so you could also perhaps start there and see if changing that reproduces your problem...

But the short answer to your question is that there is no such requirement on the client side

Bill

On 23/05/2007, at 9:04 PM, Pulkit Mathur wrote:

Hi,

When I use ExtAudioFileRead api to read data from an mp3 file, my application crashes after reading some data from the file. The crash happen in the ExtAudioFileRead api. I debugged the code and found that, when I change my buffer size >= (1024 * 5) then, my code is running fine. But when I change the buffer size < (1024 *5) then ExtAudioFileRead starts crashing again.

So, my question are,

- Is there a way to find out the minimum buffer size require by ExtAudioFileRead api?
- Has anybody else faced this problem? If yes, then, what solution you used to solve this problem?


Thanks,
Pulkit
 _______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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


References: 
 >ExtAudioFileRead Crashing with MP3 file! (From: "Pulkit Mathur" <email@hidden>)

  • Prev by Date: Re: xCode Compile problem
  • Next by Date: Mac OS USB Audio question -- asynchronous isochronous mode
  • Previous by thread: ExtAudioFileRead Crashing with MP3 file!
  • Next by thread: Mac OS USB Audio question -- asynchronous isochronous mode
  • Index(es):
    • Date
    • Thread