Commit e43f83f4 authored by Jan Kiene's avatar Jan Kiene
Browse files

port DISABLE_LIMITER switch

parent 83de534f
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -139,6 +139,8 @@

#endif /* DEBUGGING */

/*#define DISABLE_LIMITER*/                     /* disable the limiter - needed for testing Bitexactness between different renderer framings */

/* #################### End DEBUGGING switches ############################ */

/* ################### Start FIXES switches ########################### */
+2 −0
Original line number Diff line number Diff line
@@ -336,6 +336,7 @@ static void accumulate2dArrayToBuffer(
 * In-place saturation control for multichannel buffers with adaptive release time
 *-------------------------------------------------------------------*/

#ifndef DISABLE_LIMITER
/*! r: number of clipped output samples */
static int32_t limitRendererOutput(
    IVAS_LIMITER_HANDLE hLimiter, /* i/o: limiter struct handle                                           */
@@ -380,6 +381,7 @@ static int32_t limitRendererOutput(

    return numClipping;
}
#endif


/*-------------------------------------------------------------------*