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

RE: Apple Lossless ASBD


  • Subject: RE: Apple Lossless ASBD
  • From: "Edwards, Waverly" <email@hidden>
  • Date: Wed, 01 May 2013 04:15:23 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Apple Lossless ASBD

I figured out my problem

  err = AudioFormatGetProperty( kAudioFormatProperty_FormatInfo, 0, NULL, &size, &clientFormat );

should have been

  err = AudioFormatGetProperty( kAudioFormatProperty_FormatInfo, 0, NULL, &size, clientFormat );


Sometimes it is the simplest things that trip us up.

Thanks,


W.
________________________________________
From: coreaudio-api-bounces+waverly.edwards=email@hidden [coreaudio-api-bounces+waverly.edwards=email@hidden] On Behalf Of Edwards, Waverly [email@hidden]
Sent: Tuesday, April 30, 2013 5:00 PM
To: email@hidden
Subject: 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

 _______________________________________________
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

  • Next by Date: AUSampler view
  • Next by thread: AUSampler view
  • Index(es):
    • Date
    • Thread