Skip to content

Commit

Permalink
Fixed warnings issued by PVS Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Sep 4, 2023
1 parent 38c3670 commit 83adafe
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/main/sampling/helpers/playback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,29 +293,10 @@ namespace lsp
return;

case SAMPLE_LOOP_REVERSE_FULL_PP:
// If current batch is in reverse direction, then we need to process
// one more batch in the direct direction
if (pb->bReverse)
{
if (s->nStart < s->nEnd)
break;
b->nStart = pb->nLoopStart;
b->nEnd = 0;
}
else
{
if (s->nEnd < s->nStart)
break;
b->nStart = pb->nLoopEnd;
b->nEnd = sample_len;
}
b->enType = BATCH_TAIL;
return;

case SAMPLE_LOOP_DIRECT_SMART_PP:
case SAMPLE_LOOP_REVERSE_SMART_PP:
// If current batch is in reverse direction, then we need to process
// one more batch in the direct direction
// If current batch is in direct/reverse direction, then we need to process
// one more batch in the opposite direction
if (pb->bReverse)
{
if (s->nStart < s->nEnd)
Expand Down

0 comments on commit 83adafe

Please sign in to comment.