Exemplo n.º 1
0
 public void Update(float[] origin, float[] forward, float[] right, float[] up)
 {
     Channel.ConvertVector(origin, listenerOrigin);
     AL10.AlListener(AL10.AL_POSITION, listenerOrigin);
     Channel.ConvertOrientation(forward, up, listenerOrientation);
     AL10.AlListener(AL10.AL_ORIENTATION, listenerOrientation);
     AL10.AlListenerf(AL10.AL_GAIN, s_volume.value);
     Channel.AddLoopSounds();
     Channel.AddPlaySounds();
     Channel.PlayAllSounds(listenerOrigin);
 }