1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 01:29:44 +00:00

Switch to another std::fill.

This commit is contained in:
Thomas Harte 2024-02-08 10:47:05 -05:00
parent 228012cd0c
commit d481f335b8

View File

@ -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) {}