• 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
Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

Dominic Feira / Code Monkey / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com

On Jun 13, 2011, at 3:03 PM, email@hidden wrote:

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

  • Follow-Ups:
    • Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
      • From: Jean-Yves Avenard <email@hidden>
  • Prev by Date: Re: Audio I/O Question
  • Next by Date: Re: Coreaudio-api Digest, Vol 8, Issue 178
  • Previous by thread: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
  • Next by thread: Re: kAudioOutputUnitProperty_CurrentDevice with error -2147450879
  • Index(es):
    • Date
    • Thread