|
|
|
@ -14,14 +14,16 @@ |
|
|
|
#include "core/core_timing.h"
|
|
|
|
#include "core/hle/kernel/k_event.h"
|
|
|
|
|
|
|
|
namespace AudioCore::AudioIn { |
|
|
|
|
|
|
|
// See texture_cache/util.h
|
|
|
|
template<typename T, size_t N> |
|
|
|
#if BOOST_VERSION >= 108100 || __GNUC__ > 12
|
|
|
|
[[nodiscard]] boost::container::static_vector<T, N> FixStaticVectorADL(const boost::container::static_vector<T, N>& v) { |
|
|
|
[[nodiscard]] static inline boost::container::static_vector<T, N> FixStaticVectorADL(const boost::container::static_vector<T, N>& v) { |
|
|
|
return v; |
|
|
|
} |
|
|
|
#else
|
|
|
|
[[nodiscard]] std::vector<T> FixStaticVectorADL(const boost::container::static_vector<T, N>& v) { |
|
|
|
[[nodiscard]] static inline std::vector<T> FixStaticVectorADL(const boost::container::static_vector<T, N>& v) { |
|
|
|
std::vector<T> u; |
|
|
|
for (auto const& e : v) |
|
|
|
u.push_back(e); |
|
|
|
@ -29,8 +31,6 @@ template<typename T, size_t N> |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace AudioCore::AudioIn { |
|
|
|
|
|
|
|
System::System(Core::System& system_, Kernel::KEvent* event_, const size_t session_id_) |
|
|
|
: system{system_}, buffer_event{event_}, |
|
|
|
session_id{session_id_}, session{std::make_unique<DeviceSession>(system_)} {} |
|
|
|
|