Commit 59396722 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Fixing test of sample server

parent 9804d5ef
...@@ -9,13 +9,19 @@ using namespace std; ...@@ -9,13 +9,19 @@ using namespace std;
static string g_sServerName = "localhost"; static string g_sServerName = "localhost";
static int g_iServerPort = 12480; static int g_iServerPort = 12480;
static double g_dSampleRate = 44.1e3; static double g_dSampleRate = 44.1e3;
static int g_iBlockLength = 265;
int main( int , char** ) int main( int , char** )
{ {
ITAStreamFunctionGenerator oGenerator(); ITAStreamFunctionGenerator oGenerator( 1, g_dSampleRate, g_iBlockLength );
CITANetAudioSampleServer oSampleServer(); oGenerator.SetFunction( ITAStreamFunctionGenerator::SINE );
oGenerator.SetFrequency( 567.89f );
oSampleServer.Start( g_iServerPort, g_iServerPort ); CITANetAudioSampleServer oSampleServer;
oSampleServer.SetInputStream( &oGenerator );
cout << "Starting server and waiting for connections on '" << oSampleServer.GetNetworkAddress() << "' on port " << oSampleServer.GetNetworkPort() << endl;
oSampleServer.Start( g_sServerName, g_iServerPort );
return 0; return 0;
} }
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