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:
parent
bfa237397d
commit
8db44eed3e
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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];
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user