metering mixer output on ios
metering mixer output on ios
- Subject: metering mixer output on ios
- From: Ash Gibson <email@hidden>
- Date: Fri, 10 Aug 2012 16:30:49 +1000
Hi,
I have an AUGraph with a multi channel mixer. I basically want to get a meter reading of the single output from the mixer. So it wouldn't matter if I had 1 or 100 things going into the mixer, i just want to meter the output.
I have the following snippets:
// allow metering on the mixer
UInt32 allowMetering = 1;
CheckError(AudioUnitSetProperty(myMixer,
kAudioUnitProperty_MeteringMode,
kAudioUnitScope_Output,
0, // allowing metering on bus 0
&allowMetering,
sizeof(allowMetering)),
"AudioUnitSetProperty[kAudioUnitProperty_MeteringMode] failed");
and in a timer:
float amps;
CheckError(AudioUnitGetParameter(refObj.mixerAU, kMultiChannelMixerParam_PostAveragePower, kAudioUnitScope_Output, 0, &s), "Error");
I keep getting the following error in my debugger:
(lldb)
with this item highlighted:
#0 0x3681f488 in PowerMeter::Process_Int32(long const*, int, int) ()
Can anyone help point me in the right direction.
Cheers,
Ash
_______________________________________________
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