]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/voiceplayer.cxx
apt.dat parser: clearer log and exception messages
[flightgear.git] / src / Sound / voiceplayer.cxx
index 583443dedf8b542830172c4d694355cd1a834038..c4ca5d2bdb33e2b54df71be1c9d729d977ad540b 100644 (file)
@@ -33,7 +33,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
-#include <math.h>
+#include <cmath>
 
 #include <string>
 #include <sstream>
@@ -208,7 +208,7 @@ FGVoicePlayer::bind (SGPropertyNode *node, const char* default_dir_prefix)
 void
 FGVoicePlayer::init ()
 {
-    SGSoundMgr *smgr = globals->get_soundmgr();
+    SGSoundMgr *smgr = globals->get_subsystem<SGSoundMgr>();
     _sgr = smgr->find("avionics", true);
     _sgr->tie_to_listener();
     speaker.update_configuration();