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!
|