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

Remove empty implementation, the better for debugging.

This commit is contained in:
Thomas Harte 2024-02-12 13:59:03 -05:00
parent d49c07687c
commit 1895b4ee5d
2 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class SoundGenerator: public ::Outputs::Speaker::BufferSource<SoundGenerator, fa
static constexpr unsigned int clock_rate_divider = 8;
// To satisfy ::SampleSource.
// For BufferSource.
template <Outputs::Speaker::Action action>
void apply_samples(std::size_t number_of_samples, Outputs::Speaker::MonoSample *target);
void set_sample_volume_range(std::int16_t range);

View File

@ -64,10 +64,12 @@ class BufferSource {
/*!
Should 'apply' the next @c number_of_samples to @c target ; application means applying @c action which can be achieved either via the
helper functions above @c apply and @c fill or by semantic inspection (primarily, if an obvious quick route for @c Action::Ignore is available)
helper functions above @c apply and @c fill or by semantic inspection (primarily, if an obvious quick route for @c Action::Ignore is available).
No default implementation is provided.
*/
template <Action action>
void apply_samples([[maybe_unused]] std::size_t number_of_samples, [[maybe_unused]] typename SampleT<stereo>::type *target) {}
void apply_samples([[maybe_unused]] std::size_t number_of_samples, [[maybe_unused]] typename SampleT<stereo>::type *target);
/*!
@returns @c true if it is trivially true that a call to get_samples would just