mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 23:32:28 +00:00
Switches to more normative preincrement.
This commit is contained in:
parent
44513d6912
commit
f541986333
@ -106,7 +106,7 @@ static uint8_t noise_pattern[] = {
|
|||||||
// means every second cycle, etc.
|
// means every second cycle, etc.
|
||||||
|
|
||||||
void AudioGenerator::get_samples(std::size_t number_of_samples, int16_t *target) {
|
void AudioGenerator::get_samples(std::size_t number_of_samples, int16_t *target) {
|
||||||
for(unsigned int c = 0; c < number_of_samples; c++) {
|
for(unsigned int c = 0; c < number_of_samples; ++c) {
|
||||||
update(0, 2, shift);
|
update(0, 2, shift);
|
||||||
update(1, 1, shift);
|
update(1, 1, shift);
|
||||||
update(2, 0, shift);
|
update(2, 0, shift);
|
||||||
@ -124,7 +124,7 @@ void AudioGenerator::get_samples(std::size_t number_of_samples, int16_t *target)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AudioGenerator::skip_samples(std::size_t number_of_samples) {
|
void AudioGenerator::skip_samples(std::size_t number_of_samples) {
|
||||||
for(unsigned int c = 0; c < number_of_samples; c++) {
|
for(unsigned int c = 0; c < number_of_samples; ++c) {
|
||||||
update(0, 2, shift);
|
update(0, 2, shift);
|
||||||
update(1, 1, shift);
|
update(1, 1, shift);
|
||||||
update(2, 0, shift);
|
update(2, 0, shift);
|
||||||
|
Loading…
Reference in New Issue
Block a user