X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FSound%2Ffg_fx.cxx;h=93e8b779b770ac61e256ec4c6e93c633e2d674f7;hb=a739fad66484506ebb71fc802bf8f1a0c2ab4c6c;hp=d13a56f81f7f0ad5e13ab14dc5df01f0ad5bd8ec;hpb=cf7839a67b3f41a1b788902edce03fb9ede0b7a7;p=flightgear.git diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index d13a56f81..93e8b779b 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -25,18 +25,18 @@ #pragma warning (disable: 4786) #endif -#include -#include #include -#include +#include #ifdef __BORLANDC__ # define exception c_exception #endif +#include +#include +#include #include
#include "fg_fx.hxx" -#include "fg_sound.hxx" FGFX::FGFX () @@ -62,7 +62,7 @@ FGFX::init() } path.append(path_str.c_str()); - SG_LOG(SG_GENERAL, SG_INFO, "Reading Instrument " << node->getName() + SG_LOG(SG_GENERAL, SG_INFO, "Reading sound " << node->getName() << " from " << path.str()); SGPropertyNode root; @@ -76,8 +76,10 @@ FGFX::init() node = root.getNode("fx"); for (i = 0; i < node->nChildren(); i++) { - FGSound *sound = new FGSound(); - sound->init(node->getChild(i)); + SGSound *sound = new SGSound(); + + sound->init(globals->get_props(), node->getChild(i), + globals->get_soundmgr(), globals->get_fg_root()); _sound.push_back(sound); }