• 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: File format conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File format conversion


  • Subject: Re: File format conversion
  • From: William Stewart <email@hidden>
  • Date: Wed, 4 Feb 2009 17:48:24 -0800


On Feb 3, 2009, at 10:36 PM, Fredrik wrote:

So, your format flags aren't complete. You need: kAudioFormatFlagIsBigEndian kAudioFormatFlagIsSignedInteger kAudioFormatFlagIsPacked


Yes, that makes sense. I added these flags. What is the proper way to do that though? I just separated them by commas now, and that compiled fine. Like this:


OutFormat.mFormatFlags = kAudioFormatFlagIsBigEndian,
kAudioFormatFlagIsSignedInteger,
kAudioFormatFlagIsPacked;


I usually or them in:

OutFormat.mFormatFlags = kAudioFormatFlagIsBigEndian |
kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsPacked;


Bill


AudioFileWriteBytes(convertedFile, false, 0,
- you have to increment this as well after every write



&propertyData, &buf.mData);


You might want to have a look at the ConvertFile example - (/Developer/ Examples/CoreAudio)
_______________________________________________
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
  • Follow-Ups:
    • Re: File format conversion
      • From: Brian Willoughby <email@hidden>
References: 
 >File format conversion (From: Fredrik <email@hidden>)
 >Re: File format conversion (From: William Stewart <email@hidden>)
 >Re: File format conversion (From: Fredrik <email@hidden>)

  • Prev by Date: writing lpcm to file
  • Next by Date: Re: File format conversion
  • Previous by thread: Re: File format conversion
  • Next by thread: Re: File format conversion
  • Index(es):
    • Date
    • Thread