Exemplo n.º 1
0
Arquivo: audio.go Projeto: num5/steven
func (m Music) SetVolume(v float64) {
	C.sfMusic_setVolume(m.internal, (C.float)(v))
}
Exemplo n.º 2
0
// \brief Set the volume of a music
// The volume is a value between 0 (mute) and 100 (full volume).
// The default value for the volume is 100.
// \param music  Music object
// \param volume Volume of the music
// void sfMusic_setVolume(sfMusic* music, float volume);
func (self Music) SetVolume(volume float32) {
	C.sfMusic_setVolume(self.Cref, C.float(volume))
}