예제 #1
0
파일: audio.go 프로젝트: num5/steven
func (s Sound) SetVolume(v float64) {
	C.sfSound_setVolume(s.internal, (C.float)(v))
}
예제 #2
0
// \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))
}