Re: File format conversion
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