- trying to fix bug in sound player
This commit is contained in:
parent
8dc637527a
commit
c913825650
|
@ -121,7 +121,7 @@ SoundRenderer &SoundRenderer::getInstance() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoundRenderer::update() {
|
void SoundRenderer::update() {
|
||||||
if(soundPlayer != NULL) {
|
if(wasInitOk() == true && soundPlayer != NULL) {
|
||||||
MutexSafeWrapper safeMutex(NULL,string(__FILE__) + "_" + intToStr(__LINE__));
|
MutexSafeWrapper safeMutex(NULL,string(__FILE__) + "_" + intToStr(__LINE__));
|
||||||
if(runThreadSafe == true) {
|
if(runThreadSafe == true) {
|
||||||
safeMutex.setMutex(&mutex);
|
safeMutex.setMutex(&mutex);
|
||||||
|
|
Loading…
Reference in New Issue