From 48be7c677e6aa2a52c18ca2d1a7b0ed9c8d8057c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 8 Feb 2024 12:07:12 -0500 Subject: [PATCH] Avoid inheritance. --- Outputs/Speaker/Implementation/CompoundSource.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Outputs/Speaker/Implementation/CompoundSource.hpp b/Outputs/Speaker/Implementation/CompoundSource.hpp index d46fc14ed..b6e7b21d9 100644 --- a/Outputs/Speaker/Implementation/CompoundSource.hpp +++ b/Outputs/Speaker/Implementation/CompoundSource.hpp @@ -33,13 +33,14 @@ template constexpr bool is_stereo() { template class CompoundSource: public Outputs::Speaker::SampleSource> { private: - template class CompoundSourceHolder: public Outputs::Speaker::SampleSource> { + template class CompoundSourceHolder { public: template void get_samples(std::size_t number_of_samples, std::int16_t *target) { std::fill(target, target + number_of_samples, 0); } void set_scaled_volume_range(int16_t, double *, double) {} + void skip_samples(const std::size_t) {} static constexpr std::size_t size() { return 0;