--- include/sound.h.origin 2005-11-04 21:09:44.000000000 +0100 +++ include/sound.h 2005-11-04 21:17:33.000000000 +0100 @@ -156,6 +156,9 @@ void UnloadWave(ALvoid* data);*/ int tochannel(int handle); + + // Gentoo + float master_volume; public: void Load(); @@ -174,6 +177,10 @@ void SetPitch(int sid, float pitch); void SetGain(int sid, float gain); void StopSource(int sid); + + // Gentoo + void SetMasterVolume(float newvol) {master_volume = newvol; if (master_volume < 0) master_volume = 0; if (master_volume > 1) master_volume = 1;} + float GetMasterVolume() {return master_volume;} //void SetPos(int sid, VERTEX pos); //void SetVel(int sid, VERTEX vel);