Fixed font atlas, feature completed garbage collection, and fix math.

This commit is contained in:
2024-06-29 22:20:53 -07:00
parent f030ac62ae
commit 0b298c6130
12 changed files with 283 additions and 180 deletions

View File

@@ -1,6 +1,7 @@
#include "ehs/io/audio/AudioDevice_ALSA.h"
#include "ehs/EHS.h"
#include "ehs/Log.h"
#include "ehs/io/Console.h"
namespace ehs
{
@@ -366,13 +367,21 @@ namespace ehs
}
else
{
EHS_LOG_INT(LogType::ERR, 0, "Wrong value for the audio device type.");
EHS_LOG_INT(LogType::ERR, 1, "Wrong value for the audio device type.");
return {};
}
int err = snd_pcm_open(&result.hdl, "default", rType, SND_PCM_NONBLOCK);
if (err < 0)
{
EHS_LOG_INT(LogType::ERR, 2, "Failed to retrieve default audio device with error #" + Str_8::FromNum(err) + ".");
return {};
}
snd_pcm_open(&result.hdl, "default", rType, SND_PCM_NONBLOCK);
result.type = AudioDeviceType::OUTPUT;
EHS_LOG_SUCCESS();
return result;
}
@@ -380,4 +389,4 @@ namespace ehs
{
return {};
}
}
}