mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
Remove empty implementation, the better for debugging.
This commit is contained in:
@@ -23,7 +23,7 @@ class SoundGenerator: public ::Outputs::Speaker::BufferSource<SoundGenerator, fa
|
|||||||
|
|
||||||
static constexpr unsigned int clock_rate_divider = 8;
|
static constexpr unsigned int clock_rate_divider = 8;
|
||||||
|
|
||||||
// To satisfy ::SampleSource.
|
// For BufferSource.
|
||||||
template <Outputs::Speaker::Action action>
|
template <Outputs::Speaker::Action action>
|
||||||
void apply_samples(std::size_t number_of_samples, Outputs::Speaker::MonoSample *target);
|
void apply_samples(std::size_t number_of_samples, Outputs::Speaker::MonoSample *target);
|
||||||
void set_sample_volume_range(std::int16_t range);
|
void set_sample_volume_range(std::int16_t range);
|
||||||
|
@@ -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
|
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>
|
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
|
@returns @c true if it is trivially true that a call to get_samples would just
|
||||||
|
Reference in New Issue
Block a user