fixed some compiler warnings

This commit is contained in:
Volker Fischer 2011-03-27 12:28:43 +00:00
parent 8926dec08b
commit 5aa210533b
9 changed files with 75 additions and 63 deletions

View file

@ -27,9 +27,9 @@
// CChannel implementation *****************************************************
CChannel::CChannel ( const bool bNIsServer ) :
bIsServer ( bNIsServer ),
vecdGains ( USED_NUM_CHANNELS, (double) 1.0 ),
bIsEnabled ( false ),
bIsServer ( bNIsServer ),
iNetwFrameSizeFact ( FRAME_SIZE_FACTOR_DEFAULT ),
iNetwFrameSize ( 20 ), // must be > 0 and should be close to a valid size
iNumAudioChannels ( 1 ) // mono

View file

@ -27,17 +27,18 @@
/* Implementation *************************************************************/
CClient::CClient ( const quint16 iPortNumber ) :
Channel ( false ), /* we need a client channel -> "false" */
Sound ( AudioCallback, this ),
Socket ( &Channel, iPortNumber ),
iAudioInFader ( AUD_FADER_IN_MIDDLE ),
iReverbLevel ( 0 ),
bReverbOnLeftChan ( false ),
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ),
strName ( "" ),
bOpenChatOnNewMessage ( true ),
eGUIDesign ( GD_ORIGINAL ),
Channel ( false ), /* we need a client channel -> "false" */
bDoAutoSockBufSize ( true ),
iCeltNumCodedBytes ( CELT_NUM_BYTES_MONO_NORMAL_QUALITY ),
bCeltDoHighQuality ( false ),
bUseStereo ( false ),
Socket ( &Channel, iPortNumber ),
Sound ( AudioCallback, this ),
iAudioInFader ( AUD_FADER_IN_MIDDLE ),
bReverbOnLeftChan ( false ),
iReverbLevel ( 0 ),
#if defined ( __APPLE__ ) || defined ( __MACOSX )
// we assume on Mac always the preferred frame size works fine
iSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_PREFERRED ),
@ -47,14 +48,13 @@ CClient::CClient ( const quint16 iPortNumber ) :
iSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ),
iSndCrdFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ),
#endif
bSndCrdConversionBufferRequired ( false ),
iSndCardMonoBlockSizeSamConvBuff ( 0 ),
bFraSiFactPrefSupported ( false ),
bFraSiFactDefSupported ( false ),
bFraSiFactSafeSupported ( false ),
iCeltNumCodedBytes ( CELT_NUM_BYTES_MONO_NORMAL_QUALITY ),
bCeltDoHighQuality ( false ),
bUseStereo ( false ),
bSndCrdConversionBufferRequired ( false ),
iSndCardMonoBlockSizeSamConvBuff ( 0 )
bOpenChatOnNewMessage ( true ),
eGUIDesign ( GD_ORIGINAL )
{
// init audio encoder/decoder (mono)
CeltModeMono = celt_mode_create (

View file

@ -27,7 +27,7 @@
/* Implementation *************************************************************/
CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
Qt::WindowFlags f ) : pClient ( pNCliP ), QDialog ( parent, f )
Qt::WindowFlags f ) : QDialog ( parent, f ), pClient ( pNCliP )
{
setupUi ( this );

View file

@ -31,8 +31,8 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
const bool bNewDisalbeLEDs,
QWidget* parent,
Qt::WindowFlags f ) :
pClient ( pNCliP ),
QDialog ( parent, f ),
pClient ( pNCliP ),
bUnreadChatMessage ( false ),
ClientSettingsDlg ( pNCliP, parent
#ifdef _WIN32

View file

@ -27,7 +27,7 @@
/* Implementation *************************************************************/
CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, QWidget* parent )
: pServer ( pNServP ), QDialog ( parent )
: QDialog ( parent ), pServer ( pNServP )
{
setupUi ( this );

View file

@ -150,6 +150,7 @@ protected:
// do not use the vector class since CChannel does not have appropriate
// copy constructor/operator
CChannel vecChannels[MAX_NUM_CHANNELS];
CConnectionLessChannel ConnLessChannel;
QMutex Mutex;
// audio encoder/decoder

View file

@ -70,21 +70,27 @@ protected:
void AddMarker ( const SHistoryData& curHistoryData );
void Save ( const QString sFileName );
QString sFileName;
bool bDoHistory;
CFIFO<SHistoryData> vHistoryDataFifo;
QRect PlotCanvasRect;
int iNumTicksX;
int iYAxisStart;
int iYAxisEnd;
int iNumTicksX;
int iNumTicksY;
int iGridFrameOffset;
int iGridWidthWeekend;
int iTextOffsetToGrid;
int iTextOffsetX;
int iXAxisTextHeight;
int iMarkerSizeNewCon;
int iMarkerSizeServSt;
double dXSpace;
int iYSpace;
QFont AxisFont;
int iTextOffsetX;
QColor PlotBackgroundColor;
QColor PlotFrameColor;
QColor PlotGridColor;
@ -92,14 +98,15 @@ protected:
QColor PlotMarkerNewColor;
QColor PlotMarkerNewLocalColor;
QColor PlotMarkerStopColor;
QDate curDate;
QImage PlotPixmap;
QRect PlotCanvasRect;
QRect PlotGridFrame;
QString sFileName;
QTimer TimerDailyUpdate;
CFIFO<SHistoryData> vHistoryDataFifo;
QImage PlotPixmap;
double dXSpace;
int iYSpace;
QDate curDate;
QRect PlotGridFrame;
QTimer TimerDailyUpdate;
public slots:
void OnTimerDailyUpdate() { Update(); }

View file

@ -120,6 +120,10 @@ void CSocket::OnDataReceived()
case PS_PROT_ERR:
PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_YELLOW );
break;
default:
// other put data states need not to be considered here
break;
}
}
else