use preferred sound card buffer size instead of the default one
This commit is contained in:
parent
81bc9e7aad
commit
1f87508104
2 changed files with 1537 additions and 1544 deletions
|
@ -30,7 +30,7 @@ CChannel::CChannel ( const bool bNIsServer ) :
|
|||
vecdGains ( USED_NUM_CHANNELS, (double) 1.0 ),
|
||||
bIsEnabled ( false ),
|
||||
bIsServer ( bNIsServer ),
|
||||
iNetwFrameSizeFact ( FRAME_SIZE_FACTOR_DEFAULT ),
|
||||
iNetwFrameSizeFact ( FRAME_SIZE_FACTOR_PREFERRED ),
|
||||
iNetwFrameSize ( 20 ), // must be > 0 and should be close to a valid size
|
||||
iNumAudioChannels ( 1 ) // mono
|
||||
{
|
||||
|
|
|
@ -39,15 +39,8 @@ CClient::CClient ( const quint16 iPortNumber ) :
|
|||
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 ),
|
||||
iSndCrdFrameSizeFactor ( FRAME_SIZE_FACTOR_PREFERRED ),
|
||||
#else
|
||||
// if ASIO4All is used, it is safer to use the default value
|
||||
iSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ),
|
||||
iSndCrdFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ),
|
||||
#endif
|
||||
bSndCrdConversionBufferRequired ( false ),
|
||||
iSndCardMonoBlockSizeSamConvBuff ( 0 ),
|
||||
bFraSiFactPrefSupported ( false ),
|
||||
|
|
Loading…
Reference in a new issue