diff --git a/core/audio/misc/audio_buffer.cpp b/core/audio/misc/audio_buffer.cpp index b25e42f..90e1aac 100644 --- a/core/audio/misc/audio_buffer.cpp +++ b/core/audio/misc/audio_buffer.cpp @@ -1,5 +1,7 @@ #include "audio_buffer.h" +#include + void audio_buffer::resize(uint32_t channel_num, uint32_t block_size) { std::scoped_lock lock(lock_); buffer_.resize(channel_num); diff --git a/core/misc/singleton/singleton.h b/core/misc/singleton/singleton.h index b9d7842..98fcb87 100644 --- a/core/misc/singleton/singleton.h +++ b/core/misc/singleton/singleton.h @@ -45,8 +45,8 @@ public: #if defined(core_EXPORTS) #define DEFINE_SINGLETON_INSTANCE(T) \ inline T g_##T; \ - extern "C" CORE_API inline T& get_##T() { return g_##T; } + extern "C" CORE_API inline T* get_##T() { return &g_##T; } #else #define DEFINE_SINGLETON_INSTANCE(T) \ - extern "C" CORE_API inline T& get_##T(); + extern "C" CORE_API inline T* get_##T(); #endif