Compiling errors fixed.

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