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();