tags:

views:

33

answers:

1

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

+1  A: 

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."

pion