Skip to content

Commit

Permalink
Enforce check (debug only)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Mar 18, 2020
1 parent da1e1ba commit 9b2a237
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cpp/Slicer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class LinearCrossFader

if(fCurrent < numSamples)
{
if(!fFadeTo0)
DLOG_F(WARNING, "xFadeFrom0ToBuffer called while already cross fading from 0");
DCHECK_F(fFadeTo0, "xFadeFrom0ToBuffer called while already cross fading from 0");

int current = fCurrent;

Expand Down Expand Up @@ -89,8 +88,7 @@ class LinearCrossFader

if(fCurrent < numSamples)
{
if(fFadeTo0)
DLOG_F(WARNING, "xFadeTo0FromBuffer called while already cross fading to 0");
DCHECK_F(!fFadeTo0, "xFadeTo0FromBuffer called while already cross fading to 0");

int current = fCurrent;

Expand Down

0 comments on commit 9b2a237

Please sign in to comment.