1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Restores attempt at proper audio behaviour.

This commit is contained in:
Thomas Harte 2019-06-11 19:53:22 -04:00
parent ebd59f4dd3
commit c8066b01b6

View File

@ -67,7 +67,7 @@ void Audio::get_samples(std::size_t number_of_samples, int16_t *target) {
// TODO: temporary implementation. Very inefficient. Replace.
for(std::size_t sample = 0; sample < number_of_samples; ++sample) {
target[sample] = volume_multiplier_ * int16_t(sample_queue_.buffer[read_pointer]);// * volume_ * enabled_mask_);
target[sample] = volume_multiplier_ * int16_t(sample_queue_.buffer[read_pointer] * volume_ * enabled_mask_);
++subcycle_offset_;
if(subcycle_offset_ == sample_length) {