//
// Written by Curtis Olson, started March 2001.
//
-// Copyright (C) 2001 Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2001 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// 4. create the simple sound and return
SGSoundSample *sample = new SGSoundSample( buffer, length,
- BYTES_PER_SECOND );
+ BYTES_PER_SECOND,
+ false );
+
+ // clean up the buffer
+ delete [] buffer;
+
+ sample->set_reference_dist( 10.0 );
+ sample->set_max_dist( 20.0 );
return sample;
}