Skip to content
Snippets Groups Projects
Select Git revision
  • 0a161c932aac6f7116dbf00cb4e63a2da54de776
  • main default protected
  • gitkeep
  • dev protected
  • Issue/xxxx-searchMetadata
  • Issue/2309-docs
  • Test/xxxx-returnDB
  • Test/xxxx-docker
  • v1.3.0
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.2
  • v1.0.1
  • v1.0.0
19 results

MetadataController.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ITANetAudioStreamingServerTest.cpp 921 B
    #include <iostream>
    #include <string>
    
    #include <ITANetAudioStreamingServer.h>
    #include <ITANetAudioServer.h>
    #include <ITAStreamFunctionGenerator.h>
    #include <ITAStreamMultiplier1N.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;
    static int g_iChannels = 1;
    
    int main( int, char** )
    {
    	ITAFileDatasource oFile( "gershwin-mono.wav", g_iBlockLength );
    	oFile.SetIsLooping( true );
    	ITAStreamMultiplier1N oMuliplier( &oFile, g_iChannels );
    	CITANetAudioStreamingServer oStreamingServer;
    	oStreamingServer.SetInputStream( &oMuliplier );
    
    	cout << "Starting net audio 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;
    }