Esempio n. 1
0
File: audio.go Progetto: num5/steven
func (s Sound) SetPosition(x, y, z float32) {
	C.sfSound_setPosition(s.internal, C.sfVector3f{
		C.float(x),
		C.float(y),
		C.float(z),
	})
}
Esempio n. 2
0
// \brief Set the 3D position of a sound in the audio scene
// Only sounds with one channel (mono sounds) can be
// spatialized.
// The default position of a sound is (0, 0, 0).
// \param sound    Sound object
// \param position Position of the sound in the scene
// void sfSound_setPosition(sfSound* sound, sfVector3f position);
func (self Sound) SetPosition(v Vector3f) {
	C.sfSound_setPosition(self.Cref, v.Cref)
}