mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 00:37:27 +00:00
Switch to another std::fill.
This commit is contained in:
parent
228012cd0c
commit
d481f335b8
@ -10,6 +10,7 @@
|
||||
|
||||
#include "SampleSource.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <atomic>
|
||||
@ -26,7 +27,7 @@ template <typename... T> class CompoundSource:
|
||||
template <typename... S> class CompoundSourceHolder: public Outputs::Speaker::SampleSource<CompoundSourceHolder<S...>> {
|
||||
public:
|
||||
template <bool output_stereo> void get_samples(std::size_t number_of_samples, std::int16_t *target) {
|
||||
std::memset(target, 0, sizeof(std::int16_t) * number_of_samples);
|
||||
std::fill(target, target + number_of_samples, 0);
|
||||
}
|
||||
|
||||
void set_scaled_volume_range(int16_t, double *, double) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user