Different ways of obtaining AudioUnit instance
Different ways of obtaining AudioUnit instance
- Subject: Different ways of obtaining AudioUnit instance
- From: Pier <email@hidden>
- Date: Tue, 11 Dec 2012 20:47:13 +0800
How is this way :
AUGraphNodeInfo (theGraph, remoteIONode, 0, &_remoteIOUnit);
Different from :
AudioComponent inputComponent = AudioComponentFindNext(NULL, &cd);
result = AudioComponentInstanceNew(inputComponent, &_remoteIOUnit);
I have an error with the 2nd method when I'm asking for a VPIO object.
The first one works fine but according to a post I saw on stackoverflow it says I need to do AudioComponentInstanceDispose(_remoteIOUnit);
to properly clear out the vpio instance properly. I suspect this has got to do with my recording volume issue when i switch from vpio back to remoteio.
It gives me the following error when iniitialising the AUGraph
<com.apple.main-thread> AURemoteIO::Initialize failed: -66635 (enable 3, outf< 1 ch, 44100 Hz, Int16> inf< 1 ch, 44100 Hz, Int16>)
Thanks in advance!
--
Pier.
_______________________________________________
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