• 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
Apple Lossless ASBD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: AudioSessionSetActive(true) at end of audio interruption fails when called from background app
  • Next by Date: Alternative way to load Audio Units?
  • Previous by thread: Re: AudioSessionSetActive(true) at end of audio interruption fails when called from background app
  • Next by thread: Alternative way to load Audio Units?
  • Index(es):
    • Date
    • Thread