More work. Audio driver works enough to play music now.

This commit is contained in:
elasota
2019-12-11 00:51:42 -05:00
parent b1e8e11a56
commit e368cf7235
141 changed files with 8996 additions and 1117 deletions

View File

@@ -11,6 +11,7 @@
#if PL_IS_CPP11
#define PL_DELETED = delete
#define PL_STATIC_ASSERT(n) static_assert((n), "Static assert failed: " #n)
#else
#ifndef nullptr
#define nullptr 0
@@ -25,10 +26,22 @@
#endif
#define PL_DELETED
#endif
template<bool TCondition>
struct __PL_StaticAssertHelper
{
};
template<>
struct __PL_StaticAssertHelper<true>
{
int staticAssertFailed;
};
#define PL_STATIC_ASSERT(n) ((void)(&static_cast<const __PL_StaticAssertHelper<(n)>*>(nullptr)->staticAssertFailed))
#endif
static const size_t PL_SYSTEM_MEMORY_ALIGNMENT = 16;
#endif