diff options
-rw-r--r-- | al/debug.h | 18 | ||||
-rw-r--r-- | alc/context.h | 19 |
2 files changed, 18 insertions, 19 deletions
@@ -64,22 +64,4 @@ struct DebugGroup { DebugGroup(DebugGroup&&) = default; }; - -struct DebugLogEntry { - const DebugSource mSource; - const DebugType mType; - const DebugSeverity mSeverity; - const uint mId; - - std::string mMessage; - - template<typename T> - DebugLogEntry(DebugSource source, DebugType type, uint id, DebugSeverity severity, T&& message) - : mSource{source}, mType{type}, mSeverity{severity}, mId{id} - , mMessage{std::forward<T>(message)} - { } - DebugLogEntry(const DebugLogEntry&) = default; - DebugLogEntry(DebugLogEntry&&) = default; -}; - #endif /* AL_DEBUG_H */ diff --git a/alc/context.h b/alc/context.h index 8757b041..20c89a31 100644 --- a/alc/context.h +++ b/alc/context.h @@ -34,7 +34,6 @@ struct ALeffect; struct ALeffectslot; struct ALsource; struct DebugGroup; -struct DebugLogEntry; enum class DebugSource : uint8_t; enum class DebugType : uint8_t; @@ -43,6 +42,24 @@ enum class DebugSeverity : uint8_t; using uint = unsigned int; +struct DebugLogEntry { + const DebugSource mSource; + const DebugType mType; + const DebugSeverity mSeverity; + const uint mId; + + std::string mMessage; + + template<typename T> + DebugLogEntry(DebugSource source, DebugType type, uint id, DebugSeverity severity, T&& message) + : mSource{source}, mType{type}, mSeverity{severity}, mId{id} + , mMessage{std::forward<T>(message)} + { } + DebugLogEntry(const DebugLogEntry&) = default; + DebugLogEntry(DebugLogEntry&&) = default; +}; + + struct SourceSubList { uint64_t FreeMask{~0_u64}; ALsource *Sources{nullptr}; /* 64 */ |