Commit 7b1e13d5 authored by vaclav's avatar vaclav
Browse files

put pcmdsp_fifo_write_zero() under DEBUGGING

parent 62a69000
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ int16_t pcmdsp_fifo_write(
}

#ifdef JBM_TSM_ON_TCS
#ifdef DEBUGGING
/* Writes the given audio data to the FIFO. */
int16_t pcmdsp_fifo_write_zero(
    PCMDSP_FIFO_HANDLE h,
@@ -217,6 +218,7 @@ int16_t pcmdsp_fifo_write_zero(
    return 0;
}
#endif
#endif

/* Reads the given number of audio samples from the FIFO. */
int16_t pcmdsp_fifo_read(
+3 −0
Original line number Diff line number Diff line
@@ -73,9 +73,12 @@ void pcmdsp_fifo_destroy( PCMDSP_FIFO_HANDLE *ph );
ivas_error pcmdsp_fifo_init( PCMDSP_FIFO_HANDLE h, uint16_t nSamplesPerChannel, uint16_t nChannels, uint16_t nBytesPerSample );

int16_t pcmdsp_fifo_write( PCMDSP_FIFO_HANDLE h, const uint8_t *samples, uint16_t nSamplesPerChannel );

#ifdef JBM_TSM_ON_TCS
#ifdef DEBUGGING
int16_t pcmdsp_fifo_write_zero( PCMDSP_FIFO_HANDLE h, uint16_t nSamplesPerChannel );
#endif
#endif

int16_t pcmdsp_fifo_read( PCMDSP_FIFO_HANDLE h, uint16_t nSamplesPerChannel, uint8_t *samples );

+2 −0
Original line number Diff line number Diff line
@@ -1977,11 +1977,13 @@ ivas_error IVAS_DEC_VoIP_GetSamples(
                nSamplesTcsScaled = hVoIP->nSamplesFrame;
                if ( hVoIP->hFifoOut != NULL )
                {
#ifdef DEBUGGING
                    /* feed zeros to FIFO */
                    if ( pcmdsp_fifo_write_zero( hVoIP->hFifoOut, nSamplesTcsScaled ) != 0 )
                    {
                        return IVAS_ERR_UNKNOWN;
                    }
#endif
                }
                else
                {