setGain bug?

Am I doing something wrong? I’m using setGain on the listener to control the overall volume of all sounds. But it did nothing. Then I added needRefresh = true; to the method in Listener and it worked. So is this a bug or was I doing something wrong?