Commit af96a3ec authored by sagnowski's avatar sagnowski
Browse files

Add debug code for tracing regions scaled by APA in decoder output

parent c3a40271
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@
/*#define DEBUG_JBM_CMD_OPTION*/                /* ability for telling the decoder the frontend fetch size and to not delay compensate for bad frames at the beginning */
/*#define VARIABLE_SPEED_DECODING*/             /* variable speed decoding employing the JBM functioniality; move to DEBUGGING after build for disabled is fixed */
/*#define DISABLE_LIMITER*/                     /* disable the limiter */
/*#define DEBUG_APA_SILENCE_NON_SCALED*/        /* Switch APA into mode that replaces contents of non-scaled frames with silence. Useful for identifying scaled regions in the audio output of the decoder */

/*Split Rendering Debug switches*/
/*#define DBG_WAV_WRITER*/                      /* add debugging function dbgwrite_wav() */
+11 −0
Original line number Diff line number Diff line
@@ -725,6 +725,17 @@ uint8_t apa_exec(
        ps->nFramesSinceSetScale >>= statsResetShift;
    }

#ifdef DEBUG_APA_SILENCE_NON_SCALED
    if ( l_in == *l_out )
    {
        set_zero( a_out, *l_out );
    }
    else
    {
        set_f( a_out, (float) INT16_MAX, *l_out );
    }
#endif

    return 0;
}