Skip to content
Snippets Groups Projects
Select Git revision
  • 7ca992aaa39e242f04ad2a31046e9dbb8679f8d5
  • master default protected
  • gitkeep
  • dev protected
  • Hotfix/2259-correctPIDUpdate
  • Issue/2518-docs
  • Issue/2312-oldPIDScript
  • Issue/2259-updatePids
  • Sprint/2022-01
  • Sprint/2020-19
  • Product/505-pidPage
  • Topic/1063-changeUrl
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.1.0
16 results

Program.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ITANetAudioStreamingServerTest.cpp 883 B
    #include <iostream>
    #include <string>
    
    #include <ITANetAudioStreamingServer.h>
    #include <ITANetAudioServer.h>
    #include <ITAStreamFunctionGenerator.h>
    #include <ITAFileDatasource.h>
    
    using namespace std;
    
    static string g_sServerName = "localhost";
    static int g_iServerPort = 12480;
    static double g_dSampleRate = 44100;
    static int g_iBlockLength = 256;
    
    int main( int , char** )
    {
    	ITAStreamFunctionGenerator oGenerator( 2, g_dSampleRate, g_iBlockLength, ITAStreamFunctionGenerator::SINE, 456.78f, 0.81f, true );
    	ITAFileDatasource oDatei("Gershwin.wav", g_iBlockLength);
    	CITANetAudioStreamingServer oStreamingServer;
    	oStreamingServer.SetInputStream(&oDatei);
    
    	cout << "Starting server and waiting for connections on '" << g_sServerName << "' on port " << g_iServerPort << endl;
    	oStreamingServer.Start( g_sServerName, g_iServerPort );
    
    	int iKey;
    	std::cin >> iKey;
    	
    	return 0;
    }