X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fglobals.cxx;h=da3de6a46beeba1fabe72597bd86356dde77e94a;hb=224afcc7e4cb4191be15f3df025164fcd83f5102;hp=7e6553fa4b196ba2602e70bdc2ada320e5ef95c3;hpb=afb0ada81f6fd0fe179ab00f048134d101f5f311;p=flightgear.git diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 7e6553fa4..da3de6a46 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -15,8 +15,8 @@ // General Public License for more details. // // 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// along with this program; if not, write to the Free Software Foundation, +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -72,6 +73,7 @@ FGGlobals::FGGlobals() : renderer( new FGRenderer ), subsystem_mgr( new SGSubsystemMgr ), event_mgr( new SGEventMgr ), + soundmgr( new SGSoundMgr ), sim_time_sec( 0.0 ), fg_root( "" ), warp( 0 ), @@ -158,6 +160,9 @@ FGGlobals::~FGGlobals() delete channellist; delete airwaynet; delete multiplayer_mgr; + + soundmgr->unbind(); + delete soundmgr; } @@ -259,6 +264,11 @@ FGGlobals::add_subsystem (const char * name, subsystem_mgr->add(name, subsystem, type, min_time_sec); } +SGSoundMgr * +FGGlobals::get_soundmgr () const +{ + return soundmgr; +} SGEventMgr * FGGlobals::get_event_mgr () const