• 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: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff


  • Subject: Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
  • From: Doug Wyatt <email@hidden>
  • Date: Fri, 15 Jan 2010 13:05:16 -0800

On Jan 15, 2010, at 13:03 , wm schauweker wrote:

> 2. AudioFileCreate is still failing with a "fmt?" error. Again, I'm trying to create a wav from Audio Unit samples by doing a conversion and writing the results to an audio file. The ASBD I am feeding AudioFileCreate...:
>
> convertedFormat.mSampleRate = 44100.0;
> convertedFormat.mFormatID = kAudioFormatLinearPCM;
> convertedFormat.mFramesPerPacket = 1;
> convertedFormat.mChannelsPerFrame = 2;
> convertedFormat.mBytesPerFrame = 2;
> convertedFormat.mBytesPerPacket = 2;
> convertedFormat.mBitsPerChannel = 16;
> convertedFormat.mReserved = 0;
> convertedFormat.mFormatFlags =
> kLinearPCMFormatFlagIsSignedInteger |
> kLinearPCMFormatFlagIsPacked |
> kAudioFormatFlagIsNonInterleaved |
> 0;
>
> I am also supplying a URL of a path in the document directory. The big long path ends in "something.wav".

The non-interleaved format is not accepted by AudioFile; files always contain interleaved data.

Doug

 _______________________________________________
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: 
 >iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff (From: wm schauweker <email@hidden>)
 >Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: MusicSequenceFileLoad and MusicSequenceLoadFlags
  • Next by Date: Sidechain and logic
  • Previous by thread: Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
  • Next by thread: continuous processing of system audio
  • Index(es):
    • Date
    • Thread