• 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
DefaultOutputUnit with interleaved data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DefaultOutputUnit with interleaved data


  • Subject: DefaultOutputUnit with interleaved data
  • From: Roland Silver <email@hidden>
  • Date: Wed, 27 Feb 2008 07:42:53 -0700

I'm trying to adapt the code from <CoreAudio/SimpleSDK/DefaultOutputUnit> to serve as a back end to allow my music composition program to play sounds.


In DefaultOutputUnit the audio data is non-interleaved; I need to change it so that the data is interleaved. One obvious thing to change is theFormatFlags, from


  UInt32 theFormatFlags =

        kLinearPCMFormatFlagIsSignedInteger 

| kAudioFormatFlagsNativeEndian

| kLinearPCMFormatFlagIsPacked

| kAudioFormatFlagIsNonInterleaved;


to 


UInt32 theFormatFlags =

        kLinearPCMFormatFlagIsSignedInteger 

| kAudioFormatFlagsNativeEndian

| kLinearPCMFormatFlagIsPacked


Also, since there are two channels, there should be one buffer (twice the size of the buffers in  the non-interleaved case), not two.


Question 1: How do I set that up?

Question 2: What else do I need to change?


Roland Silver
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: DefaultOutputUnit with interleaved data
      • From: William Stewart <email@hidden>
  • Prev by Date: Classes for LFO, envelope, arpeggiator, etc..?
  • Next by Date: Re: Example of using hardware input with mixer in AUGraph
  • Previous by thread: Classes for LFO, envelope, arpeggiator, etc..?
  • Next by thread: Re: DefaultOutputUnit with interleaved data
  • Index(es):
    • Date
    • Thread