Pow pow t'es mow.

This commit is contained in:
MarcEricMartel 2023-12-16 12:05:14 -05:00
parent 5ee3fd143b
commit 4d278dfdea

View File

@ -11,9 +11,9 @@ Audio::Audio() {
Audio::Audio(const char * music, const char* menumusic) { Audio::Audio(const char * music, const char* menumusic) {
m_engine = irrklang::createIrrKlangDevice(); m_engine = irrklang::createIrrKlangDevice();
m_engine->setDopplerEffectParameters(1); m_engine->setDopplerEffectParameters(1);
m_engine->setRolloffFactor(2); m_engine->setRolloffFactor(1);
m_engine->setDefault3DSoundMinDistance(.1); m_engine->setDefault3DSoundMinDistance(1);
m_engine->setDefault3DSoundMaxDistance(1000); m_engine->setDefault3DSoundMaxDistance(100);
m_music = m_engine->play2D(music, true, true, true, irrklang::ESM_STREAMING); m_music = m_engine->play2D(music, true, true, true, irrklang::ESM_STREAMING);
m_menumusic = m_engine->play2D(menumusic, true, true, true, irrklang::ESM_STREAMING); m_menumusic = m_engine->play2D(menumusic, true, true, true, irrklang::ESM_STREAMING);
m_music->setVolume(.5); m_music->setVolume(.5);