More virtual destructors.
This commit is contained in:
parent
4b74636d04
commit
befc533398
1 changed files with 3 additions and 2 deletions
|
@ -135,6 +135,7 @@ public:
|
||||||
public:
|
public:
|
||||||
bool silence;
|
bool silence;
|
||||||
|
|
||||||
|
virtual ~Element() {}
|
||||||
virtual inline void play (float volume) {}
|
virtual inline void play (float volume) {}
|
||||||
virtual inline void stop () {}
|
virtual inline void stop () {}
|
||||||
virtual bool is_playing () = 0;
|
virtual bool is_playing () = 0;
|
||||||
|
@ -186,7 +187,7 @@ public:
|
||||||
inline Voice (FGVoicePlayer *_player)
|
inline Voice (FGVoicePlayer *_player)
|
||||||
: element(NULL), player(_player), volume(1.0) {}
|
: element(NULL), player(_player), volume(1.0) {}
|
||||||
|
|
||||||
~Voice ();
|
virtual ~Voice ();
|
||||||
|
|
||||||
inline void append (Element *_element) { elements.push_back(_element); }
|
inline void append (Element *_element) { elements.push_back(_element); }
|
||||||
|
|
||||||
|
@ -229,7 +230,7 @@ public:
|
||||||
dev_name(_dev_name), dir_prefix(""),
|
dev_name(_dev_name), dir_prefix(""),
|
||||||
speaker(this,properties_handler) {}
|
speaker(this,properties_handler) {}
|
||||||
|
|
||||||
~FGVoicePlayer ();
|
virtual ~FGVoicePlayer ();
|
||||||
|
|
||||||
void init ();
|
void init ();
|
||||||
void pause();
|
void pause();
|
||||||
|
|
Loading…
Add table
Reference in a new issue