From e5126a9e078872e80650d19dddef0ad55e8bc2e3 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 19 Feb 2024 14:30:57 +0100 Subject: [PATCH] g++/clang++ compilation fix --- include/lol/private/audio/stream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lol/private/audio/stream.h b/include/lol/private/audio/stream.h index 26e7b050..caa1217e 100644 --- a/include/lol/private/audio/stream.h +++ b/include/lol/private/audio/stream.h @@ -303,25 +303,25 @@ static inline auto make_generator(F f, size_t channels, int frequency) return make_generator(std::function(f), channels, frequency); } -template +template static inline auto make_converter(std::shared_ptr s) { return std::make_shared>(std::shared_ptr>(s)); } -template +template static inline auto make_mapper(std::shared_ptr s, size_t channels) { return std::make_shared>(std::shared_ptr>(s), channels); } -template +template static inline auto make_resampler(std::shared_ptr s, int frequency) { return std::make_shared>(std::shared_ptr>(s), frequency); } -template +template static inline auto make_adapter(std::shared_ptr s, size_t channels, int frequency) { return make_resampler(make_mapper(make_converter(s), channels), frequency);