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:
parent
ebd59f4dd3
commit
c8066b01b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user