X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fxmlsound.hxx;h=f3635b08a705393d2c8180bc2a71aeeb9681904e;hb=a7697f6095eca0a2b8e1129d8430aebb62138509;hp=66caa1396b670fcd8cea3b46d66a847f03fa700f;hpb=409db9d7efba3c38d09dfb10ace05d78541b1411;p=simgear.git diff --git a/simgear/sound/xmlsound.hxx b/simgear/sound/xmlsound.hxx index 66caa139..f3635b08 100644 --- a/simgear/sound/xmlsound.hxx +++ b/simgear/sound/xmlsound.hxx @@ -38,8 +38,8 @@ #include #include +#include "sample_group.hxx" #include "sample_openal.hxx" -#include "soundmgr_openal.hxx" static const double MAX_TRANSIT_TIME = 0.1; // 100 ms. @@ -99,11 +99,12 @@ public: * @param root The root node of the programs property tree. * @param child A pointer to the location of the current event as defined * in the configuration file. - * @param sndmgr A pointer to a pre-initialized sound manager class. + * @param sgrp A pointer to a pre-initialized sample group class. + * @param avionics A pointer to the pre-initialized avionics sample group. * @param path The path where the audio files remain. */ - virtual void init (SGPropertyNode *, SGPropertyNode *, SGSoundMgr *, - const string &); + virtual void init (SGPropertyNode *, SGPropertyNode *, SGSampleGroup *, + SGSampleGroup *, const SGPath& currentDir); /** * Check whether an event has happened and if action has to be taken. @@ -135,10 +136,10 @@ protected: private: - SGSoundMgr * _mgr; + SGSampleGroup * _sgrp; SGSharedPtr _sample; - SGCondition * _condition; + SGSharedPtr _condition; SGPropertyNode_ptr _property; bool _active;