Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6bbad87c4 | ||
|
|
3005812584 | ||
|
|
0c3def4068 | ||
|
|
0284a77418 |
@@ -27,7 +27,7 @@ namespace compositor {
|
|||||||
* represented in the property tree. Useful for OSG or OpenGL enums.
|
* represented in the property tree. Useful for OSG or OpenGL enums.
|
||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
using PropStringMap = const std::unordered_map<std::string, T>;
|
using PropStringMap = std::unordered_map<std::string, T>;
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
bool findPropString(const std::string &str,
|
bool findPropString(const std::string &str,
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ void SGSoundMgr::suspend()
|
|||||||
for ( auto current = d->_sample_groups.begin();
|
for ( auto current = d->_sample_groups.begin();
|
||||||
current != d->_sample_groups.end(); ++current ) {
|
current != d->_sample_groups.end(); ++current ) {
|
||||||
SGSampleGroup *sgrp = current->second;
|
SGSampleGroup *sgrp = current->second;
|
||||||
sgrp->stop();
|
sgrp->suspend();
|
||||||
}
|
}
|
||||||
_active = false;
|
_active = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ SGXmlSound::~SGXmlSound()
|
|||||||
if (_sample)
|
if (_sample)
|
||||||
_sample->stop();
|
_sample->stop();
|
||||||
|
|
||||||
|
if (_sgrp && (_name != ""))
|
||||||
|
_sgrp->remove(_name);
|
||||||
|
|
||||||
_volume.clear();
|
_volume.clear();
|
||||||
_pitch.clear();
|
_pitch.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user