Commit bf81aade authored by Jonas Stienen's avatar Jonas Stienen

Updating server logging base name setting for tests

parent 836ee756
......@@ -79,7 +79,11 @@ public:
void SetAutomaticUpdateRate();
void SetTargetLatencySamples( const int iTargetLatency );
void GetTargetLatencySamples() const;
int GetTargetLatencySamples() const;
void SetServerLogBaseName( const std::string& sBaseName );
std::string GetServerLogBaseName() const;
protected:
ITADatasource* GetInputStream() const;
......@@ -95,6 +99,7 @@ private:
int iServerBlockId;
ITABufferedDataLoggerImplServer* m_pServerLogger;
std::string m_sServerLogBaseName;
int m_iUpdateStrategy;
int m_iClientRingBufferFreeSamples;
......
This diff is collapsed.
#include <iostream>
#include <string>
#include <ITANetAudioStreamingServer.h>
#include <ITANetAudioServer.h>
#include <ITAStreamFunctionGenerator.h>
......@@ -8,6 +5,10 @@
#include <ITAFileDataSource.h>
#include <VistaBase/VistaTimeUtils.h>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string g_sServerName = "localhost";
......@@ -40,12 +41,20 @@ int main( int argc, char** argv )
}
catch( ITAException& )
{
cout << "Could not find file " << g_sFileName << ", will use sine signal instead." << endl;
cout << "Could not find file " << g_sFileName << ", will use SINE signal instead." << endl;
pSource = new ITAStreamFunctionGenerator( 1, g_dSampleRate, g_iBlockLength, ITAStreamFunctionGenerator::SINE, 250.0f, 0.7171f, true );
}
ITAStreamMultiplier1N oMuliplier( pSource, g_iChannels );
CITANetAudioStreamingServer oStreamingServer;
stringstream ss;
ss << "NetAudioStreamingServerTest";
ss << "_C" << g_iChannels;
ss << "_B" << g_iBlockLength;
ss << "_TL" << g_iTargetLatencySamples;
oStreamingServer.SetServerLogBaseName( ss.str() );
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