コード例 #1
0
ファイル: audio.go プロジェクト: num5/steven
func SetGlobalVolume(vol float64) {
	C.sfListener_setGlobalVolume(C.float(vol))
}
コード例 #2
0
ファイル: aud-listener.go プロジェクト: drhodes/go-sfml
// \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))
}