Ejemplo n.º 1
0
Archivo: audio.go Proyecto: num5/steven
func (s Sound) SetPitch(v float64) {
	C.sfSound_setPitch(s.internal, C.float(v))
}
Ejemplo n.º 2
0
// \brief Set the pitch of a sound
// The pitch represents the perceived fundamental frequency
// of a sound; thus you can make a sound more acute or grave
// by changing its pitch. A side effect of changing the pitch
// is to modify the playing speed of the sound as well.
// The default value for the pitch is 1.
// \param sound Sound object
// \param pitch New pitch to apply to the sound
// void sfSound_setPitch(sfSound* sound, float pitch);
func (self Sound) SetPitch(pitch float32) {
	C.sfSound_setPitch(self.Cref, C.float(pitch))
}