Commit a4a9fd6d authored by Anne Heimes's avatar Anne Heimes

log datei serverblocklänge hinzugefügt

parent df4aa311
......@@ -21,6 +21,7 @@ int g_iBlockLength = 32;
int g_iChannels = 2;
int g_iTargetLatencySamples = 2 * g_iBlockLength; // 1.4512ms
int g_iRingBufferSize = 2 * g_iTargetLatencySamples;
int g_iSendingBlockLength = 8;
double g_dPlaybackDuration = 10 ; // seconds
int main( int argc, char* argv[] )
......@@ -37,6 +38,7 @@ int main( int argc, char* argv[] )
g_iChannels = atoi(argv[5]);
g_iTargetLatencySamples = atoi(argv[6]);
g_iRingBufferSize = atoi(argv[7]);
g_iSendingBlockLength = atoi(argv[8]);
}
if( argc >= 9 )
......@@ -58,6 +60,7 @@ int main( int argc, char* argv[] )
ss << "_B" << g_iBlockLength;
ss << "_TL" << g_iTargetLatencySamples;
ss << "_RB" << g_iRingBufferSize;
ss << "_SB" << g_iSendingBlockLength;
oNetAudioStream.SetNetAudioStreamingLoggerBaseName( ss.str() );
ITAStreamPatchbay oPatchbay( g_dSampleRate, g_iBlockLength );
......
......@@ -69,6 +69,7 @@ int main( int argc, char** argv )
ss << "_B" << g_iBlockLength;
ss << "_TL" << g_iTargetLatencySamples;
ss << "_RB" << g_iRingBufferSize;
ss << "_SB" << g_iSendingBlockLength;
oStreamingServer.SetServerLogBaseName( ss.str() );
oStreamingServer.SetInputStream( &oMuliplier );
......
......@@ -24,7 +24,7 @@ const static string g_sServerName = "localhost";
const static string g_sInputFilePath = "gershwin-mono.wav";
const static int g_iServerPort = 12480;
const static double g_dSampleRate = 44100;
const static int g_iBlockLength = 256;
const static int g_iBlockLength = 32;
const static int g_iChannels = 2;
const static int g_iTargetLatencySamples = g_iBlockLength * 1;
const static int g_iRingerBufferCapacity = g_iBlockLength * 5;
......
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