Adding debug switch for NetAudio server test

parent 45cc77b6
......@@ -22,6 +22,7 @@ int g_iRingBufferSize = 2 * g_iTargetLatencySamples;
int g_iSendingBlockLength = 8;
double g_dClientStatusMessageTimeout = 0.001; // seconds
string g_sFileName = "gershwin-mono.wav";
bool g_bDebuggingEnabled = true;
int main( int argc, char** argv )
{
......@@ -72,7 +73,7 @@ int main( int argc, char** argv )
ss << "_RB" << g_iRingBufferSize;
ss << "_SB" << g_iSendingBlockLength;
oStreamingServer.SetServerLogBaseName( ss.str() );
oStreamingServer.SetDebuggingEnabled( true );
oStreamingServer.SetDebuggingEnabled( g_bDebuggingEnabled );
oStreamingServer.SetInputStream( &oMuliplier );
oStreamingServer.SetTargetLatencySamples( g_iTargetLatencySamples );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment