Initialise CChannel::iCurSockBufNumFrames.

This avoids a comparison with an uninitialised value when
SetSockBufNumFrames is called later in the constructor.
This commit is contained in:
Adam Sampson 2020-06-20 17:53:34 +01:00
parent c926db8360
commit 413a995ad7

View file

@ -29,6 +29,7 @@
CChannel::CChannel ( const bool bNIsServer ) : CChannel::CChannel ( const bool bNIsServer ) :
vecdGains ( MAX_NUM_CHANNELS, 1.0 ), vecdGains ( MAX_NUM_CHANNELS, 1.0 ),
vecdPannings ( MAX_NUM_CHANNELS, 0.5 ), vecdPannings ( MAX_NUM_CHANNELS, 0.5 ),
iCurSockBufNumFrames ( -1 ),
bDoAutoSockBufSize ( true ), bDoAutoSockBufSize ( true ),
iFadeInCnt ( 0 ), iFadeInCnt ( 0 ),
iFadeInCntMax ( FADE_IN_NUM_FRAMES_DBLE_FRAMESIZE ), iFadeInCntMax ( FADE_IN_NUM_FRAMES_DBLE_FRAMESIZE ),