fixed some compiler warnings
This commit is contained in:
parent
8926dec08b
commit
5aa210533b
9 changed files with 75 additions and 63 deletions
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -217,8 +217,8 @@ public:
|
|||
CChannel* GetChannel() { return &Channel; }
|
||||
|
||||
// settings
|
||||
CVector<QString> vstrIPAddress;
|
||||
QString strName;
|
||||
CVector<QString> vstrIPAddress;
|
||||
QString strName;
|
||||
|
||||
#ifdef LLCON_VST_PLUGIN
|
||||
// VST version must have direct access to sound object
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
/* Implementation *************************************************************/
|
||||
CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, QWidget* parent )
|
||||
: pServer ( pNServP ), QDialog ( parent )
|
||||
: QDialog ( parent ), pServer ( pNServP )
|
||||
{
|
||||
setupUi ( this );
|
||||
|
||||
|
|
35
src/server.h
35
src/server.h
|
@ -149,33 +149,34 @@ protected:
|
|||
|
||||
// do not use the vector class since CChannel does not have appropriate
|
||||
// copy constructor/operator
|
||||
CChannel vecChannels[MAX_NUM_CHANNELS];
|
||||
QMutex Mutex;
|
||||
CChannel vecChannels[MAX_NUM_CHANNELS];
|
||||
CConnectionLessChannel ConnLessChannel;
|
||||
QMutex Mutex;
|
||||
|
||||
// audio encoder/decoder
|
||||
CELTMode* CeltModeMono[MAX_NUM_CHANNELS];
|
||||
CELTEncoder* CeltEncoderMono[MAX_NUM_CHANNELS];
|
||||
CELTDecoder* CeltDecoderMono[MAX_NUM_CHANNELS];
|
||||
CELTMode* CeltModeStereo[MAX_NUM_CHANNELS];
|
||||
CELTEncoder* CeltEncoderStereo[MAX_NUM_CHANNELS];
|
||||
CELTDecoder* CeltDecoderStereo[MAX_NUM_CHANNELS];
|
||||
CELTMode* CeltModeMono[MAX_NUM_CHANNELS];
|
||||
CELTEncoder* CeltEncoderMono[MAX_NUM_CHANNELS];
|
||||
CELTDecoder* CeltDecoderMono[MAX_NUM_CHANNELS];
|
||||
CELTMode* CeltModeStereo[MAX_NUM_CHANNELS];
|
||||
CELTEncoder* CeltEncoderStereo[MAX_NUM_CHANNELS];
|
||||
CELTDecoder* CeltDecoderStereo[MAX_NUM_CHANNELS];
|
||||
|
||||
CVector<QString> vstrChatColors;
|
||||
CVector<QString> vstrChatColors;
|
||||
|
||||
// actual working objects
|
||||
CSocket Socket;
|
||||
CCycleTimeVariance CycleTimeVariance;
|
||||
CSocket Socket;
|
||||
CCycleTimeVariance CycleTimeVariance;
|
||||
|
||||
// logging
|
||||
CServerLogging Logging;
|
||||
CServerLogging Logging;
|
||||
|
||||
// HTML file server status
|
||||
bool bWriteStatusHTMLFile;
|
||||
QString strServerHTMLFileListName;
|
||||
QString strServerNameWithPort;
|
||||
bool bWriteStatusHTMLFile;
|
||||
QString strServerHTMLFileListName;
|
||||
QString strServerNameWithPort;
|
||||
|
||||
CHighPrecisionTimer HighPrecisionTimer;
|
||||
CVector<short> vecsSendData;
|
||||
CHighPrecisionTimer HighPrecisionTimer;
|
||||
CVector<short> vecsSendData;
|
||||
|
||||
public slots:
|
||||
void OnTimer();
|
||||
|
|
|
@ -70,37 +70,44 @@ protected:
|
|||
void AddMarker ( const SHistoryData& curHistoryData );
|
||||
void Save ( const QString sFileName );
|
||||
|
||||
bool bDoHistory;
|
||||
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;
|
||||
QColor PlotBackgroundColor;
|
||||
QColor PlotFrameColor;
|
||||
QColor PlotGridColor;
|
||||
QColor PlotTextColor;
|
||||
QColor PlotMarkerNewColor;
|
||||
QColor PlotMarkerNewLocalColor;
|
||||
QColor PlotMarkerStopColor;
|
||||
QDate curDate;
|
||||
QImage PlotPixmap;
|
||||
QRect PlotCanvasRect;
|
||||
QRect PlotGridFrame;
|
||||
QString sFileName;
|
||||
QTimer TimerDailyUpdate;
|
||||
|
||||
bool bDoHistory;
|
||||
CFIFO<SHistoryData> vHistoryDataFifo;
|
||||
|
||||
QRect PlotCanvasRect;
|
||||
|
||||
int iNumTicksX;
|
||||
int iYAxisStart;
|
||||
int iYAxisEnd;
|
||||
int iNumTicksY;
|
||||
int iGridFrameOffset;
|
||||
int iGridWidthWeekend;
|
||||
int iTextOffsetToGrid;
|
||||
int iXAxisTextHeight;
|
||||
int iMarkerSizeNewCon;
|
||||
int iMarkerSizeServSt;
|
||||
|
||||
QFont AxisFont;
|
||||
int iTextOffsetX;
|
||||
|
||||
QColor PlotBackgroundColor;
|
||||
QColor PlotFrameColor;
|
||||
QColor PlotGridColor;
|
||||
QColor PlotTextColor;
|
||||
QColor PlotMarkerNewColor;
|
||||
QColor PlotMarkerNewLocalColor;
|
||||
QColor PlotMarkerStopColor;
|
||||
|
||||
QImage PlotPixmap;
|
||||
|
||||
double dXSpace;
|
||||
int iYSpace;
|
||||
|
||||
QDate curDate;
|
||||
QRect PlotGridFrame;
|
||||
QTimer TimerDailyUpdate;
|
||||
|
||||
public slots:
|
||||
void OnTimerDailyUpdate() { Update(); }
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue