Long story 3db offset in: Sig To RMS Stereo or Sig To dB somewhere

hello today i am trying to build an auto gain function (with no succes :P)

and during testing i found this 3db offset in the chain somewhere

this is just a test project tho

Auto Gain Function Testing.mnprtz (66.0 KB)

video a bit blury dunno why obs doing that again but you can see that without me changing anything in between i am “loosing” 3db

cheers

Video is fine for me, keep in mind after just uploading and even it’s all good in processing from SD to HD quality, if you watch this type of video’s you get sometimes a blurry effect just because YT seems to show SD quality and suddenly it catches up.

its already blurry on my uncompressed so i rerecorded and did a lot of zooming to show

this could just be the diff between rms and peak

i am completely clueless how to do any of this

where to connect the stuff its all audio wires

Based on what i was reading this is completely correct. Sinus as DB, differs in RMS 3dB

Reference list for you:

Waveform RMS relative to Peak Difference
Sine wave 0.707 × Peak −3.01 dB
Triangle wave 0.577 × Peak −4.77 dB
Sawtooth wave 0.577 × Peak −4.77 dB
Square wave 1.000 × Peak 0 dB
50% Pulse 0.707 × Peak −3.01 dB
25% Pulse 0.500 × Peak −6.02 dB
10% Pulse 0.316 × Peak −10.00 dB

yeah makes sense but that does present me with a problem on how to actually do this then coz i dont want my meters in rms. never mind i am leaving this alone for now having a headache already