How to set volume on Audio Unit specifically on kAudioUnitSubType_RemoteIO ?
I saw something for kAudioUnitSubType_MultiChannelMixer
status = AudioUnitSetParameter(mixerUnit, kMultiChannelMixerParam_Volume, kAudioUnitScope_Output, AU_OUTPUT_BUS, volume, 0);
Thanks in advance for your help
From Chris Adamson's blog An iPhone Core Audio brain dump
"RemoteIO does not have a gain or volume property. The mixer unit has volume properties on all input buses and its output bus (0). Therefore, setting the mixer’s output volume property could be a de facto volume control, if it’s the last thing before RemoteIO. And it’s somewhat more appealing than manually multiplying all your samples by a volume factor."
if your target is desktop this will help you http://developer.apple.com/audio/audiounits.html with iphone target
result = AudioUnitSetParameter ( yourUnit, kHALOutputParam_Volume, kAudioUnitScope_Output, busNumber, volume, 0); this will set device volume
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With