Exemple #1
0
func (s Sound) SetVolume(v float64) {
	C.sfSound_setVolume(s.internal, (C.float)(v))
}
Exemple #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))
}