Example #1
0
File: audio.go Project: num5/steven
func (m Music) SetPitch(v float64) {
	C.sfMusic_setPitch(m.internal, C.float(v))
}
Example #2
0
// \brief Set the pitch of a music
// The pitch represents the perceived fundamental frequency
// of a sound; thus you can make a music more acute or grave
// by changing its pitch. A side effect of changing the pitch
// is to modify the playing speed of the music as well.
// The default value for the pitch is 1.
// \param music Music object
// \param pitch New pitch to apply to the music
// void sfMusic_setPitch(sfMusic* music, float pitch);
func (self Music) SetPitch(pitch float32) {
	C.sfMusic_setPitch(self.Cref, C.float(pitch))
}