Cannot change volume or pitch before playing sound

I’m using the follow code, calling the function with a public studioeventemitter as sound. Everything works fine, except that the " sound.EventInstance.setPitch(pitch);" and " sound.EventInstance.setVolume(volume);" doesn’t do anything. I’ve tried setting them on start, after instantiation etc and nothing works. does anyone know what I’ve done wrong?

public void InstantiateSound(StudioEventEmitter sound, Vector3 pos, float pitch, float volume)
 {
    sound.EventInstance.setPitch(pitch);

sound.EventInstance.setVolume(volume);

Instantiate(sound, pos, Quaternion.identity);


 }