fixes for buffer fading

This commit is contained in:
Volker Fischer 2008-08-11 18:30:37 +00:00
parent 55aaafd90f
commit 69dbc9c35a
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ void CNetBuf::Init ( const int iNewBlockSize, const int iNewNumBlocks )
}
else
{
iNumSamFadingExtra = FADE_IN_OUT_NUM_SAM;
iNumSamFadingExtra = FADE_IN_OUT_NUM_SAM_EXTRA;
}
// init variables for extrapolation (in case a fade out is needed)

View file

@ -31,11 +31,11 @@
/* Definitions ****************************************************************/
// time for fading effect for masking drop outs
#define FADE_IN_OUT_TIME ( (double) 0.3 ) // ms
#define FADE_IN_OUT_TIME ( (double) 2 ) // ms
#define FADE_IN_OUT_NUM_SAM ( (int) ( SYSTEM_SAMPLE_RATE * FADE_IN_OUT_TIME ) / 1000 )
// for extrapolation a shorter time for fading
#define FADE_IN_OUT_NUM_SAM_EXTRA 5 // samples
#define FADE_IN_OUT_NUM_SAM_EXTRA 10 // samples
/* Classes ********************************************************************/