Compare commits
4 Commits
next
...
version/20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6bbad87c4 | ||
|
|
3005812584 | ||
|
|
0c3def4068 | ||
|
|
0284a77418 |
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -83,6 +83,9 @@ SGXmlSound::~SGXmlSound()
|
||||
if (_sample)
|
||||
_sample->stop();
|
||||
|
||||
if (_sgrp && (_name != ""))
|
||||
_sgrp->remove(_name);
|
||||
|
||||
_volume.clear();
|
||||
_pitch.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user