- if (_data) free( _data );
- _data = NULL;
-}
-
-void SGSoundSample::set_orientation( const SGQuatd& ori ) {
- _orientation = ori;
- update_absolute_position();
- _changed = true;
-}
-
-void SGSoundSample::set_direction( const SGVec3d& dir ) {
- _direction = dir;
- update_absolute_position();
- _changed = true;
-}
-
-void SGSoundSample::set_relative_position( const SGVec3f& pos ) {
- _relative_pos = toVec3d(pos);
- update_absolute_position();
- _changed = true;