1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Added a default implementation of Speaker::skip_samples.

This commit is contained in:
Thomas Harte 2016-07-04 20:48:27 -04:00
parent bfa237397d
commit 8db44eed3e
3 changed files with 6 additions and 5 deletions

View File

@ -914,7 +914,3 @@ void Atari2600::Speaker::get_samples(unsigned int number_of_samples, int16_t *ta
}
}
}
void Atari2600::Speaker::skip_samples(unsigned int number_of_samples)
{
}

View File

@ -32,7 +32,6 @@ class Speaker: public ::Outputs::Filter<Speaker> {
void set_control(int channel, uint8_t control);
void get_samples(unsigned int number_of_samples, int16_t *target);
void skip_samples(unsigned int number_of_samples);
private:
uint8_t _volume[2];

View File

@ -88,6 +88,12 @@ class Speaker {
{
_coefficients_are_dirty = true;
}
void get_samples(unsigned int quantity, int16_t *target) {}
void skip_samples(unsigned int quantity) {
int16_t throwaway_samples[quantity];
get_samples(quantity, throwaway_samples);
}
};
/*!