MediaSound volume control not fully working for MP4's

So it looks like I got this figured out now. Not sure if it’s right, but it works for me. It was a combination of things, for anyone else who might run into it…

I’m still not quite sure what jwatte was referring to when (s)he mentioned “gain structure” and add/remove db vs. linear multiplication, but I did find one reference to “linear” and dB’s in the Attenuation Distance of the Sound Component details, which led me to experiment with the different settings. I found that all of them changed how my volume slider worked, with none providing absolute quiet when the slider was at zero. But this one got me the closest:

AttenuationDist.PNG
As mentioned, this got me most of the way, but the video sound was still very audible with the slider all the way to zero. My script looked like this:

After much hair pulling and some profanity, on a whim, I added a volume multiplier in addition to the sound mix override. I had unsuccessfully experimented with it before (in place of the sound mix override) after watching some tuts that had demonstrated using it as an alternative to using the sound mix override. Other tuts I watched demonstrated that the sound mix override was enough to handle the volume control. However, in fairness, none of the tuts I watched was working with audio components from a VIDEO source. Now my working script looks like this:


So in the end I added the volume multiplier, targeted it to my media sound component and now it works like a champ!!

Like I already said, I’m not sure if this is absolutely the best way or even the right way, but it works when nothing else did. Hopefully this helps someone save a little time!

ty/d