Phase volume & levels

I've got volume in my implementation. Too much hurricane force volume. Though, the consistent problem is the volume is blasting when I create a ambient or channel mixer. (not a point or volumetric source. eg. calm breeze sound) I set the level on the mixer and nothing seems to happen. I'd like to set the volume lower.

Though, on the spatial mixer, if I set the gain, rolloff and direct path level on the source node ( a point or volumetric source), then the spatial mixer case appears to work and no blasting audio.

I've been following the wwdc examples. ( watched it about 4 times now) It appears I should not use the source node with the ambient and channel mixers? That seems to be only an option adding the parameter to the spatial mixer. The ambient mixer seems to only want the listener and a quaternion direction. ( I normalized to 1 )

If I set the calibration to relative spl on the sampler node but that always seems to cause blasting audio.

I added the sound assets with dynamic using wav format at 32 bits and 44.1 khz.

Also, are there any examples of the meta parameters? Is that how I could dynamically adjust the level? Think there was a passing reference to it in the wwdc video.

Any pointers would be appreciated. I wonder if I'm making consistent assumptions on how phase works. I try to set up as much as possible before I start the engine. ( especially adding children nodes. )

Replies

This seemed to help some...

let m1 = event?.metaParameters["Sampler_Gain"] as? PHASENumberMetaParameter
m1?.fade(value: gain, duration: 0)

let m2 = event?.metaParameters["Mixer_Gain"] as? PHASENumberMetaParameter
m2?.fade(value: mixSettings.gain, duration: 0)

The problem is my gain for the sampler is 0.0005 with ambient. The mixer gain is 0.15 . Calibration is .absoluteSpl at level of 0. The other spatial audio I use .absoluteSpl at level 12 with more reasonable gain values. Maybe its the file but when I read in the file its set to .dynamic . If I use .relativeSpl in any case the speakers ****. Maybe its a captain obvious thing but I'm not seeing it.