Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
- Subject: Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
- From: Dominic Feira <email@hidden>
- Date: Mon, 13 Jun 2011 15:06:10 -0400
Though it isn't documented anywhere, the only time I've gotten this return value is if you are calling on something that isn't actually an audio unit. Check the value of au. Be sure you have actually opened the AU correctly.
Message: 1 Date: Sun, 12 Jun 2011 19:52:36 -0400 From: GW Rodriguez <email@hidden> Subject: kAudioOutputUnitProperty_CurrentDevice with error -2147450879 To: email@hidden Message-ID: <BANLkTi=0EEYoH-H0jJyA5R-7g=email@hidden">BANLkTi=0EEYoH-H0jJyA5R-7g=email@hidden> Content-Type: text/plain; charset="iso-8859-1"
I have been trying to set a AUHAL's output device to something other than the default output. Here's the code I've been using:
error = AudioUnitSetProperty(au, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &deviceID, sizeof(UInt32));
At first I though I was getting the error because I was trying to set this property after I had initialized and started the graph, but once I moved the function to before the init graph I got the same error. I looked through the archives and couldn't find anyone else with this error code with kAudioOutputUnitProperty_CurrentDevice.
Any help is much appreciated. Thanks -- GW Rodriguez
|
_______________________________________________
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