Apple Lossless ASBD
Apple Lossless ASBD
- Subject: Apple Lossless ASBD
- From: "Edwards, Waverly" <email@hidden>
- Date: Tue, 30 Apr 2013 16:00:06 -0500
- Acceptlanguage: en-US
- Thread-topic: Apple Lossless ASBD
What parameters do you use to return an ASBD for Apple Lossless client?
I've been trying to find this out for a couple of hours without success.
My goal is to setup my ASBD by reference and then write the file to an m4a type but I have not been able to get past here.
I get an error -50 which is a parameter error. The documentation states there are no flags.
I have tried it with and without a flag but haven't found the answer yet.
Would someone mind pointing out my error.
Thank you,
W.
OSStatus SetAppleLosslessAudioASBD( AudioStreamBasicDescription * clientFormat )
{
UInt32 size;
OSStatus err;
size = sizeof( AudioStreamBasicDescription );
memset( clientFormat, 0, size );
clientFormat->mSampleRate = 44100.0;
clientFormat->mFormatID = kAudioFormatAppleLossless;
// clientFormat->mFormatFlags = kAppleLosslessFormatFlag_16BitSourceData;
// clientFormat->mChannelsPerFrame = 2;
err = AudioFormatGetProperty( kAudioFormatProperty_FormatInfo, 0, NULL, &size, &clientFormat );
return err;
}
_______________________________________________
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