Compare commits

...

4 Commits

Author SHA1 Message Date
James Turner
d6bbad87c4 New version: 2019.1.2 2019-08-09 14:07:16 +02:00
Scott Giese
3005812584 [soundmgr_openal] Pause/Resume Sound.
The following changes fixes a case for me where I hear the sound change levels up and down for each pause un-pause cycle.
Patch provided by daniel.c.wickstrom@gmail.com.
2019-08-01 12:01:23 +01:00
Dan Wickstrom
0c3def4068 Aircraft model reinit deletes sound effect samples, but leaves them defined in the sample group, so a reload doesn't re-add them. 2019-08-01 12:01:08 +01:00
James Turner
0284a77418 Tweak code for older GCC 2019-05-13 16:00:51 +01:00
4 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ namespace compositor {
* represented in the property tree. Useful for OSG or OpenGL enums.
*/
template<class T>
using PropStringMap = const std::unordered_map<std::string, T>;
using PropStringMap = std::unordered_map<std::string, T>;
template <class T>
bool findPropString(const std::string &str,

View File

@@ -340,7 +340,7 @@ void SGSoundMgr::suspend()
for ( auto current = d->_sample_groups.begin();
current != d->_sample_groups.end(); ++current ) {
SGSampleGroup *sgrp = current->second;
sgrp->stop();
sgrp->suspend();
}
_active = false;
}

View File

@@ -83,6 +83,9 @@ SGXmlSound::~SGXmlSound()
if (_sample)
_sample->stop();
if (_sgrp && (_name != ""))
_sgrp->remove(_name);
_volume.clear();
_pitch.clear();
}

View File

@@ -1 +1 @@
2019.1.1
2019.1.2