コード例 #1
0
ファイル: audio.go プロジェクト: num5/steven
func (s Sound) SetVolume(v float64) {
	C.sfSound_setVolume(s.internal, (C.float)(v))
}
コード例 #2
0
ファイル: aud-sound.go プロジェクト: drhodes/go-sfml
// \brief Set the volume of a sound
// The volume is a value between 0 (mute) and 100 (full volume).
// The default value for the volume is 100.
// \param sound  Sound object
// \param volume Volume of the sound
// void sfSound_setVolume(sfSound* sound, float volume);
func (self Sound) SetVolume(volume float32) {
	C.sfSound_setVolume(self.Cref, C.float(volume))
}