Audio: Add dummy device (in case OpenAL fails to load) and unifiate unit tests

This commit is contained in:
Jérôme Leclercq
2022-03-18 19:03:57 +01:00
parent efa2c0a253
commit 82641c6653
30 changed files with 809 additions and 107 deletions

View File

@@ -100,7 +100,7 @@ namespace Nz
/*!
* \brief Gets the global volume
* \return Float between [0, inf) with 100.f being the default
* \return Float between [0, inf) with 1.f being the default
*/
float OpenALDevice::GetGlobalVolume() const
{
@@ -109,7 +109,7 @@ namespace Nz
ALfloat gain = 0.f;
m_library.alGetListenerf(AL_GAIN, &gain);
return gain * 100.f;
return gain;
}
/*!