X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FSound%2Ffg_fx.hxx;h=864a898bb07219e5b7064dcb77ed6501de9171c0;hb=1ae2b59333dc914d10bcc726bc94e71cbf3e411e;hp=e80c7d4c6f65bb272402cea652525aa29aba2dff;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Sound/fg_fx.hxx b/src/Sound/fg_fx.hxx index e80c7d4c6..864a898bb 100644 --- a/src/Sound/fg_fx.hxx +++ b/src/Sound/fg_fx.hxx @@ -32,8 +32,8 @@ #include #include -SG_USING_STD(queue); -SG_USING_STD(vector); +using std::queue; +using std::vector; class SGXmlSound; @@ -72,19 +72,22 @@ public: * in order. */ void play_message( SGSoundSample *_sample ); - void play_message( const string path, const string fname ); + void play_message( const string path, const string fname, double volume ); private: + void update_pos_and_orientation(SGSoundMgr *smgr, double dt); + sgdVec3 last_visitor_pos; + sgdVec3 last_model_pos; + vector _sound; queue _samplequeue; bool last_pause; double last_volume; - SGPropertyNode *_pause; - SGPropertyNode *_volume; - + SGPropertyNode_ptr _pause; + SGPropertyNode_ptr _volume; };