mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-21 20:29:06 +00:00
Avoid inheritance.
This commit is contained in:
parent
147d817977
commit
48be7c677e
@ -33,13 +33,14 @@ template <typename... S> constexpr bool is_stereo() {
|
|||||||
template <typename... T> class CompoundSource:
|
template <typename... T> class CompoundSource:
|
||||||
public Outputs::Speaker::SampleSource<CompoundSource<T...>> {
|
public Outputs::Speaker::SampleSource<CompoundSource<T...>> {
|
||||||
private:
|
private:
|
||||||
template <typename... S> class CompoundSourceHolder: public Outputs::Speaker::SampleSource<CompoundSourceHolder<S...>> {
|
template <typename... S> class CompoundSourceHolder {
|
||||||
public:
|
public:
|
||||||
template <bool output_stereo> void get_samples(std::size_t number_of_samples, std::int16_t *target) {
|
template <bool output_stereo> void get_samples(std::size_t number_of_samples, std::int16_t *target) {
|
||||||
std::fill(target, target + number_of_samples, 0);
|
std::fill(target, target + number_of_samples, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_scaled_volume_range(int16_t, double *, double) {}
|
void set_scaled_volume_range(int16_t, double *, double) {}
|
||||||
|
void skip_samples(const std::size_t) {}
|
||||||
|
|
||||||
static constexpr std::size_t size() {
|
static constexpr std::size_t size() {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user