• 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: unable to change volumes of mixer inputs? (iOS)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unable to change volumes of mixer inputs? (iOS)


  • Subject: Re: unable to change volumes of mixer inputs? (iOS)
  • From: Bob Sabiston <email@hidden>
  • Date: Mon, 31 Dec 2012 10:06:25 -0600



I call the following to change the vol. This maybe called because either the
user pressed the hardware vol button or moved a UISlider

status = AudioUnitSetParameter(multiChannelMixerAU,
kMultiChannelMixerParam_Volume,
                                      kAudioUnitScope_Output, 0, value, 0);


Yes but is that not the control for the *entire* volume?  I am trying to
control the volume of the inputs -- like, I have one laser sound that I only
want to play at half volume, another time I might want one character's noise
to increase while others don't Š that sort of thing.

Bob

Message: 3
Date: Sat, 29 Dec 2012 12:31:53 -0800
From: Andy Davidson <email@hidden>
To: Bob Sabiston <email@hidden>
Cc: "email@hidden Apple"
<email@hidden>
Subject: Re: also: unable to change volumes of mixer inputs? (iOS)
Message-ID: <CD049180.10962%email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi Bob

You are correct my code controls the vol of the output of the mixer. I am
very interested in your question. At some point in time I need to figure out
how to split stereo into separate channels and want to control the vol of
each channel separately. I have not had time to write the test code for this
feature

I found your original post

OSStatus result = AudioUnitSetParameter (mixerUnit,
                                           kMultiChannelMixerParam_Volume,
                                           kAudioUnitScope_Input,
                                           inputBus,
                                           newGain,
                                           0
                                           );
Is the scope correct? You use input, my example uses output?

Andy

It is supposed to be input if you want to change the input volume levels.  That old sample code MixerHost was able to do it, but the same thing does not seem to work in my code.  I am not sure what the problem could be, though.  I wasn't able to get MixerHost to compile and run on my newer devices however.  Anyone know what I might be doing wrong?  

Thanks
Bob



 _______________________________________________
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

  • Prev by Date: more ausampler questions....
  • Next by Date: Re: more ausampler questions....
  • Previous by thread: Re: Sample files in coreaudio-api messages (was: Re: more ausampler questions….)
  • Next by thread: MPMediaPickerController crashes!
  • Index(es):
    • Date
    • Thread