• 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: Error in converting WAV to AAC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in converting WAV to AAC


  • Subject: Re: Error in converting WAV to AAC
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 20 Jan 2009 08:25:13 -0800

MIDI isn't an "audio" format. You can work with MIDI Files using functions in AudioToolbox/MusicPlayer.h...

The error from AAC is 'fmt?'. What is "inputFormat"?


On Jan 20, 2009, at 8:13 , Andrew Davis wrote:

Hi,
I am trying to convert few file formats to WAVE file format. The code works fine for MP3 and AIFF file formats. But, when i use the MIDI format, i am not able to open the audiofile itself. And, when i use AAC audio files, the converter throws an error. Error code is 1718449215.


Code:
OSStatus err = AudioConverterNew (&inputFormat, &outputFormat, &converter);
where, inputFormat, outputFormat -> AudioStreamBasicDescription and converter -> AudioConverterRef. This err = 1718449215


I am setting the following values for the outputFormat. This is the same format that i have used with MP3 and AIFF files.

mBitsPerChannel - 16
mBytesPerFrame - 4
mBytesPerPacket - 4
mChannelsPerFrame - 2
mFormatFlags - 12 ( kLinearPCMFormatFlagIsSignedInteger |
kLinearPCMFormatFlagIsPacked )
mFormatID - 1819304813 ( kAudioFormatLinearPCM )
mFramesPerPacket - 1
mReserved - 0
mSampleRate - 44100

Please tell me where i have gone wrong and if i needed to add something else along with this.
_______________________________________________
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: 
 >Error in converting WAV to AAC (From: Andrew Davis <email@hidden>)

  • Prev by Date: Error in converting WAV to AAC
  • Next by Date: Re: AU+Cocoa View Xcode template
  • Previous by thread: Error in converting WAV to AAC
  • Next by thread: Mix video and audio
  • Index(es):
    • Date
    • Thread