Exemple #1
0
func SetGlobalVolume(vol float64) {
	C.sfListener_setGlobalVolume(C.float(vol))
}
Exemple #2
0
// \brief Change the global volume of all the sounds and musics
// The volume is a number between 0 and 100; it is combined with
// the individual volume of each sound / music.
// The default value for the volume is 100 (maximum).
// \param volume New global volume, in the range [0, 100]
// sfListener_setGlobalVolume(float volume);
func SetGlobalVolume(volume float32) {
	C.sfListener_setGlobalVolume(C.float(volume))
}