- // add a sound effect, return the index of the sound
- bool add( FGSimpleSound *sound, const string& refname );
+ // add a sound effect, return true if successful
+ bool add( FGSimpleSound *sound, const string& refname);
+
+ // add a sound file, return the sample if successful, else return NULL
+ FGSimpleSound *add( const string& refname, const string& file = "" );
+
+ // remove a sound effect, return true if successful
+ bool remove( const string& refname );
+
+ // return true of the specified sound exists in the sound manager system
+ bool exists( const string& refname );
+
+ // return a pointer to the FGSimpleSound if the specified sound
+ // exists in the sound manager system, otherwise return NULL
+ FGSimpleSound *find( const string& refname );