Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AUGraph

 AUGraph

Avatar for Aliaksandr Andrashuk

Aliaksandr Andrashuk

November 02, 2013

Other Decks in Programming

Transcript

  1. AudioUnit Bus 0 Bus 1 Bus 0 Bus 0 Input

    scope Output scope Global scope AudioUnit
  2. typedef  struct  AudioComponentDescription  {        OSType    

                           componentType;        OSType                            componentSubType;        OSType                            componentManufacturer;        UInt32                            componentFlags;        UInt32                            componentFlagsMask; }  AudioComponentDescription;
  3. Connecting nodes AUNode node1 = ...; AUNode node2 = ...;

    AUGraphConnectNodeInput(graph, node1, 0, node2, 0);
  4. AUFilePlayer •Plays some number of files (AudioFileID) •Can play only

    one file at moment •Plays only uncompressed audio
  5. AudioComponent AudioComponentRegister(        const  AudioComponentDescription  *    

     inDesc,        CFStringRef                                                  inName,        UInt32                                                            inVersion,        AudioComponentFactoryFunction              inFactory)
  6. typedef  struct  AudioComponentPlugInInterface  {   OSStatus        

        (*Open)(void  *self,   AudioComponentInstance  mInstance);   OSStatus             (*Close)(void  *self);   AudioComponentMethod       (*Lookup)  (SInt16  selector);   void  *               reserved;  //  set  to  NULL }  AudioComponentPlugInInterface;
  7. The end • http://developer.apple.com • http://idev.by/tag/audiounit/ • Learning Core Audio,

    A Hands-On Guide to Audio Programming for Mac and iOS. Chris Adamson, Kevin Avila.