]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/voiceplayer.hxx
Canvas: Add new element type map for geo mapping.
[flightgear.git] / src / Sound / voiceplayer.hxx
index 762b9a36d266dcb2f2150d85b1280392b3361fdc..35772b06ba83a9b98d43955ee3aa86967467f1d5 100644 (file)
@@ -16,7 +16,7 @@
 //
 // 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
@@ -135,6 +135,7 @@ public:
     public:
         bool silence;
 
+        virtual ~Element() {}
         virtual inline void play (float volume) {}
         virtual inline void stop () {}
         virtual bool is_playing () = 0;
@@ -186,7 +187,7 @@ public:
     inline Voice (FGVoicePlayer *_player)
       : element(NULL), player(_player), volume(1.0) {}
 
-    ~Voice ();
+    virtual ~Voice ();
 
     inline void append (Element *_element) { elements.push_back(_element); }
 
@@ -229,7 +230,7 @@ public:
       dev_name(_dev_name), dir_prefix(""),
       speaker(this,properties_handler) {}
 
-  ~FGVoicePlayer ();
+  virtual ~FGVoicePlayer ();
 
   void init ();
   void pause();