• 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: Client Data Format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Client Data Format


  • Subject: Re: Client Data Format
  • From: Douglas Scott <email@hidden>
  • Date: Tue, 01 Oct 2013 14:21:01 -0700

Try 32-bit floats?

-DS

On Oct 1, 2013, at 2:02 PM, Tim Murison <email@hidden> wrote:

Hi,

I’m having some trouble encoding certain configurations of multi-channel Apple Lossless files. I have no problems with 2, 4 and 6 channel configurations, however I’m running into trouble generating a 12-channel file.

Using the ExtAudioFile APIs, I’m able to create the audio file with a 12-channel AudioStreamBasicDescription and a 12-channel FileChannelLayout. When it comes to setting the 12-channel ClientDataFormat (done before setting the client layout, which, obviously also fails), I get the “fmt?" error code.

My AudioStreamBasicDescription for the ClientDataFormat is generated as follows:

AudioStreamBasicDescription asbd;

asbd.mSampleRate = m_sampleRate;
asbd.mFormatID = kAudioFormatLinearPCM;
asbd.mFormatFlags = kAudioFormatFlagIsFloat;
asbd.mBytesPerPacket = m_channels * 64 / 8;
asbd.mBytesPerFrame = asbd.mBytesPerPacket;
asbd.mFramesPerPacket = 1;
asbd.mBitsPerChannel = 64;
asbd.mChannelsPerFrame = m_channels;
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: Client Data Format
      • From: Tim Murison <email@hidden>
References: 
 >Client Data Format (From: Tim Murison <email@hidden>)

  • Prev by Date: Client Data Format
  • Next by Date: Re: Client Data Format
  • Previous by thread: Client Data Format
  • Next by thread: Re: Client Data Format
  • Index(es):
    • Date
    • Thread