mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
SDL/WASM Port
This commit is contained in:
committed by
iProgramInCpp
parent
0b16b2843a
commit
0fbe90752d
@@ -63,8 +63,13 @@ void SoundEngine::play(const std::string& name)
|
||||
|
||||
SoundDesc sd;
|
||||
|
||||
if (m_repository.get(name, sd))
|
||||
if (m_repository.get(name, sd)) {
|
||||
#ifdef USE_SDL
|
||||
m_soundSystem.play(sd, 0, 0, 0, 1, 1, true);
|
||||
#else
|
||||
m_soundSystem.playAt(sd, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void SoundEngine::play(const std::string& name, float a, float b, float c, float d, float e)
|
||||
@@ -74,6 +79,11 @@ void SoundEngine::play(const std::string& name, float a, float b, float c, float
|
||||
|
||||
SoundDesc sd;
|
||||
|
||||
if (m_repository.get(name, sd))
|
||||
if (m_repository.get(name, sd)) {
|
||||
#ifdef USE_SDL
|
||||
m_soundSystem.play(sd, a, b, c, d, e, false);
|
||||
#else
|
||||
m_soundSystem.playAt(sd, a, b, c, d, e);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user