//
// $Id$
+#ifdef HAVE_CONFIG_H
+# include <simgear_config.h>
+#endif
+
#include <simgear/compiler.h>
#if defined(__APPLE__)
if (context)
alcDestroyContext( context );
#endif
- //
- // Remove the samples from the sample manager.
- //
- sample_map_iterator sample_current = samples.begin();
- sample_map_iterator sample_end = samples.end();
- for ( ; sample_current != sample_end; ++sample_current ) {
- SGSoundSample *sample = sample_current->second;
- delete sample;
- }
}
//
// Remove the samples from the sample manager.
//
- sample_map_iterator sample_current = samples.begin();
- sample_map_iterator sample_end = samples.end();
- for ( ; sample_current != sample_end; ++sample_current ) {
- SGSoundSample *sample = sample_current->second;
- delete sample;
- }
samples.clear();
}
if ( sample_it != samples.end() ) {
// first stop the sound from playing (so we don't bomb the
// audio scheduler)
- SGSoundSample *sample = sample_it->second;
- delete sample;
samples.erase( sample_it );
// cout << "sndmgr: removed -> " << refname << endl;