Audio Engine volume bug & small update

Fixed a bug where the volume change would be ignored if the sound was fading
Added SoundEngine::GetMusicVolume
Removed volume factor
Removed unused SetListenerVelocity
This commit is contained in:
Amun
2025-10-05 22:08:37 +03:00
parent de6817c338
commit 01f4417d80
5 changed files with 19 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ PyObject* sndFadeInMusic(PyObject* poSelf, PyObject* poArgs)
if (!PyTuple_GetString(poArgs, 0, &szFileName))
return Py_BuildException();
SoundEngine::Instance().FadeInMusic(szFileName);
SoundEngine::Instance().FadeInMusic(szFileName, SoundEngine::Instance().GetMusicVolume());
return Py_BuildNone();
}