+1
-1
@@ -159,7 +159,7 @@ auto sonus::detail::sequence_player::render(std::float32_t *output, std::uint64_
|
||||
}
|
||||
for (auto channel = std::uint32_t{}; channel < channels; ++channel) {
|
||||
auto &destination = output[frame * channels + channel];
|
||||
destination = std::clamp(destination + mixed * sequence.gain * gain, -1.0F, 1.0F);
|
||||
destination = std::clamp<std::float32_t>(destination + mixed * sequence.gain * gain, -1.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
if (current->frame == current->end_frame) {
|
||||
|
||||
Reference in New Issue
Block a user