Skip to content

Commit

Permalink
fix debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Nov 19, 2024
1 parent 6d46da8 commit 1f7f6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aumiks/speakers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void speakers::fill(utki::span<std::int16_t> play_buf)noexcept{
auto dst = play_buf.begin();
for(; src != this->smp_buf.cend(); ++src){
for(unsigned i = 0; i != src->channel.size(); ++i, ++dst){
ASSERT(play_buf.overlaps(dst))
ASSERT(utki::overlaps(play_buf, dst))
using std::min;
using std::max;
*dst = int16_t(max(-0x7fff, min(int32_t(src->channel[i]), 0x7fff)));
Expand Down

0 comments on commit 1f7f6d2

Please sign in to comment.