Increasing Polyphony increases the sound volume as well

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wombatTurkey
:warning: Old Version Published before Godot 3 was released.

I’m not sure if this is a bug. And honestly, with me, it most likely isn’t since I’m learning new stuff all the time.

But, I have a SamplePlayer and have a fireball effect. I set my main volume using
GamePlayer.set_default_volume(0.25)

And when my Polyphony is set to 1 (default), the audio is fine.

But, when I set Polyphony to around 5 or 20 (doesn’t matter), the get_default_volume() still returns 0.25, but the audio is greatly increased… Not sure why is there another method I’m missing?

Maybe you are playing the sound multiple times simultaneously. Or it is, as you’ve stated out, a bug.

timoschwarzer | 2016-05-27 13:48

It’s not intended behavior then right? Cause I am playing it once, but should I make a bug report then?

wombatTurkey | 2016-05-27 13:52

If you are sure that you are playing the sound only once, it would be great if you can submit a bug report on github.

timoschwarzer | 2016-05-27 13:54

Alrighty. Yeah, I checked for sure, it is. I will submit br ty

wombatTurkey | 2016-05-27 13:55

Ugh oh… I just created a sample in a new project and it doesn’t raise the volume. Must be my own project settings… crap lol

wombatTurkey | 2016-05-27 14:03

ROFL! You were right. I was playing it twice. There was a stupid play call hiding inside my _ready function! Haha, wow. (instancing a scene too)

wombatTurkey | 2016-05-27 14:15