• 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
Is it possible to nest audio units
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to nest audio units


  • Subject: Is it possible to nest audio units
  • From: Fredrik TiC Jansson <email@hidden>
  • Date: Mon, 23 Nov 2009 14:28:20 +0000
  • Importance: Normal

i have tried now for about 3 weeks with no sucess so you are my last hope. 
I would like to crate an audio unit that can act as an advanced dj deck and be loaded as a plugin into any host. 
To achive this i would like to nest two audio units within my own FilePlayerAU and VarispeedAU 
then i would make my own code that takes care of cue points and looping and presenting the Parameters in a nice gui

I have tried to nest just one of these so far and that is the audio player 

    ComponentDescription cd;

    Component comp;


cd.componentType = kAudioUnitType_Generator;

cd.componentSubType = kAudioUnitSubType_AudioFilePlayer;

    cd.componentManufacturer = kAudioUnitManufacturer_Apple;

    cd.componentFlags = 0;

    cd.componentFlagsMask = 0;


    comp = FindNextComponent(NULL, &cd);

    if (comp == NULL) exit (-1);


ComponentResult err = OpenAComponent(comp, FilePlayer);//this is where the pointer FilePlayer gets something valid to point at. 

if (FilePlayer == NULL) exit (-1);

   

filePlayerToThisInput.sourceAudioUnit=*FilePlayer;

filePlayerToThisInput.sourceOutputNumber=0;

filePlayerToThisInput.destInputNumber=0;

err =this->AUBase::SetConnection(filePlayerToThisInput);

When doing this i get a BusError in auval and AU lab just crasches  what am i doing wrong ? 
do i have to do more setup in fileplayer before i do this ? or is it simply not possible. 


Uppgradera till en ny och säkrare version av Windows Live Messenger! Uppgradera till en ny och säkrare version av Windows Live Messenger!
 _______________________________________________
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: Is it possible to nest audio units
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
  • Next by Date: Re: cleanly finishing a recording cycle on the iPhone - best practice?
  • Previous by thread: Re: AU Lab 2.0.1
  • Next by thread: Re: Is it possible to nest audio units
  • Index(es):
    • Date
    • Thread