//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef __SOUND_VOICEPLAYER_HXX
public:
bool silence;
+ virtual ~Element() {}
virtual inline void play (float volume) {}
virtual inline void stop () {}
virtual bool is_playing () = 0;
inline Voice (FGVoicePlayer *_player)
: element(NULL), player(_player), volume(1.0) {}
- ~Voice ();
+ virtual ~Voice ();
inline void append (Element *_element) { elements.push_back(_element); }
dev_name(_dev_name), dir_prefix(""),
speaker(this,properties_handler) {}
- ~FGVoicePlayer ();
+ virtual ~FGVoicePlayer ();
void init ();
void pause();