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

Adapting API changes from ITALogItem

parent a8b5ec4d
......@@ -14,7 +14,7 @@
#include <iostream>
struct ITAStreamLog : public ITALogDataBase {
virtual std::ostream& outputDesc( std::ostream& os ) const {
static std::ostream& outputDesc( std::ostream& os ) {
os << "BlockId " << "\tTimeStamp" << "\tStreamingStatus" << std::endl;
return os;
};
......@@ -31,7 +31,7 @@ struct ITAStreamLog : public ITALogDataBase {
};
struct ITANetLog : public ITALogDataBase {
virtual std::ostream& outputDesc( std::ostream& os ) const {
static std::ostream& outputDesc( std::ostream& os ) {
os << "BlockId " << "\tTimeStamp" << "\tBufferstatus" << std::endl;
return os;
};
......
......@@ -17,13 +17,13 @@ static int g_iBufferSize = 256;
int main( int , char** )
{
CITANetAudioStream oNetAudioStream( 2, g_dSampleRate, g_iBufferSize, 100 * g_iBufferSize );
CITANetAudioStream oNetAudioStream( 1, g_dSampleRate, g_iBufferSize, 100 * g_iBufferSize );
ITAStreamProbe oProbe( &oNetAudioStream, "out_gutentag.wav" );
//ITAStreamMultiplier1N oMultiplier( &oProbe, 2 );
ITAStreamMultiplier1N oMultiplier( &oProbe, 2 );
ITAPortaudioInterface ITAPA( g_dSampleRate, g_iBufferSize );
ITAPA.Initialize();
ITAPA.SetPlaybackDatasource( &oProbe );
ITAPA.SetPlaybackDatasource( &oMultiplier );
ITAPA.Open();
ITAPA.Start();
......
......@@ -16,7 +16,7 @@ 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);
ITAFileDatasource oDatei("gershwin-mono.wav", g_iBlockLength);
CITANetAudioStreamingServer oStreamingServer;
oStreamingServer.SetInputStream(&oDatei);
......
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