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

Compiling errors fixed.

parent 1a339b87
#include <ITAPortaudioInterface.h> #include <ITAPortaudioInterface.h>
#include <ITADataSource.h> #include <ITADataSource.h>
//#include <ITADatasourceUtils.h> #include <ITADataSourceUtils.h>
#include <ITABufferDataSink.h> #include <ITABufferDataSink.h>
#include <ITASampleFrame.h> #include <ITASampleFrame.h>
...@@ -36,9 +36,9 @@ void record() ...@@ -36,9 +36,9 @@ void record()
vpfRecordData[ i ] = sfRecordData[ i ].data(); vpfRecordData[ i ] = sfRecordData[ i ].data();
ITAPA.Start(); ITAPA.Start();
ITABufferDataSink oBufferRec( pdsRecordDatasource, vpfRecordData, g_iBlockSize ); //ITABufferDataSink oBufferRec( pdsRecordDatasource, vpfRecordData, g_iBlockSize );
oBufferRec.Transfer( nRecordSamples ); //oBufferRec.Transfer( nRecordSamples );
//WriteFromDatasourceToFile( pdsRecordDatasource, sOutputFileName, (unsigned int)(5*g_dSampleRate), 1.0, true, true ); WriteFromDatasourceToFile( pdsRecordDatasource, g_sOutputFileName, (unsigned int)(5*g_dSampleRate), 1.0, true, true );
ITAPA.Stop(); ITAPA.Stop();
ITAPA.Close(); ITAPA.Close();
......
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
using namespace std; using namespace std;
const static string g_sServerName = "137.226.61.67"; const static string g_sServerName = "localhost";
const static string g_sInputFilePath = "gershwin-mono.wav"; const static string g_sInputFilePath = "gershwin-mono.wav";
const static int g_iServerPort = 12480; const static int g_iServerPort = 12480;
const static double g_dSampleRate = 44100; const static double g_dSampleRate = 44100;
const static int g_iBlockLength = 1024; const static int g_iBlockLength = 1024;
const static int g_iChannels = 300; const static int g_iChannels = 257;
class CServer : public VistaThread class CServer : public VistaThread
{ {
public: public:
inline CServer( const string& sInputFilePath ) inline CServer( const string& sInputFilePath )
{ {
pInputFile = new ITAFileDatasource( sInputFilePath, g_iBlockLength ); pInputFile = new ITAFileDatasource( sInputFilePath, g_iBlockLength );
......
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