SDL audio driver

This commit is contained in:
elasota
2020-09-28 09:58:19 -04:00
parent 2400d68aeb
commit 9cb60af2b3
15 changed files with 667 additions and 8 deletions

View File

@@ -5,7 +5,12 @@
#include "EGpFontHandlerType.h"
#include "EGpInputDriverType.h"
struct IGpLogDriver;
struct IGpLogDriver;
namespace PortabilityLayer
{
class HostSystemServices;
}
struct GpGlobalConfig
{
@@ -17,6 +22,7 @@ struct GpGlobalConfig
size_t m_numInputDrivers;
IGpLogDriver *m_logger;
PortabilityLayer::HostSystemServices *m_systemServices;
void *m_osGlobals;
};

View File

@@ -85,6 +85,7 @@ int GpMain::Run()
adProps.m_debug = true;
#endif
adProps.m_logger = g_gpGlobalConfig.m_logger;
adProps.m_systemServices = g_gpGlobalConfig.m_systemServices;
IGpInputDriver **inputDrivers = static_cast<IGpInputDriver**>(malloc(sizeof(IGpInputDriver*) * g_gpGlobalConfig.m_numInputDrivers));