• 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: canonical audio format on mac osx 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canonical audio format on mac osx 10.8


  • Subject: Re: canonical audio format on mac osx 10.8
  • From: Paul Davis <email@hidden>
  • Date: Thu, 01 Nov 2012 17:58:05 -0400



On Thu, Nov 1, 2012 at 5:21 PM, Joel Reymont <email@hidden> wrote:
kAudioFormatFlagIsNonInterleaved is the problem.

I don't understand why, though.

  // this works fine
  desc.mSampleRate = 131072;
  desc.mFormatID = kAudioFormatLinearPCM;
  desc.mFormatFlags = kAudioFormatFlagIsFloat
  | kAudioFormatFlagsNativeEndian
  | kAudioFormatFlagIsPacked;
  //| kAudioFormatFlagIsNonInterleaved; <-- except for this!
  desc.mBytesPerPacket = 8;
  desc.mFramesPerPacket = 1;
  desc.mBytesPerFrame = 8;
  desc.mChannelsPerFrame = 2;
  desc.mBitsPerChannel = 32;

ardour uses this to run AudioUnits:

    streamFormat.mSampleRate = _session.frame_rate();
    streamFormat.mFormatID = kAudioFormatLinearPCM;
    streamFormat.mFormatFlags = kAudioFormatFlagIsFloat|kAudioFormatFlagIsPacked|kAudioFormatFlagIsNonInterleaved;

#ifdef __LITTLE_ENDIAN__
    /* relax */
#else
    streamFormat.mFormatFlags |= kAudioFormatFlagIsBigEndian;
#endif

    streamFormat.mBitsPerChannel = 32;
    streamFormat.mFramesPerPacket = 1;

    /* apple says that for non-interleaved data, these
       values always refer to a single channel.
    */
    streamFormat.mBytesPerPacket = 4;
    streamFormat.mBytesPerFrame = 4;

    streamFormat.mChannelsPerFrame = audio_in;

we have had no problems with it. i think you are making a mistake asking for >1 channel, NonInterleaved. Although one can imagine how it might work, I very much doubt if CoreAudio would try to support this.

--p


 

--------------------------------------------------------------------------
for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
 _______________________________________________
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

  • Follow-Ups:
    • Re: canonical audio format on mac osx 10.8
      • From: Joel Reymont <email@hidden>
References: 
 >canonical audio format on mac osx 10.8 (From: Joel Reymont <email@hidden>)
 >Re: canonical audio format on mac osx 10.8 (From: Chris Adamson <email@hidden>)
 >Re: canonical audio format on mac osx 10.8 (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: canonical audio format on mac osx 10.8
  • Next by Date: Re: canonical audio format on mac osx 10.8
  • Previous by thread: Re: canonical audio format on mac osx 10.8
  • Next by thread: Re: canonical audio format on mac osx 10.8
  • Index(es):
    • Date
    • Thread