Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITADataSources
Commits
9c1745ca
Commit
9c1745ca
authored
Feb 03, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Compiling errors fixed.
parent
1a339b87
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/ITAPortaudioTests/ITAPortaudioInterfaceRecorder.cpp
View file @
9c1745ca
#include
<ITAPortaudioInterface.h>
#include
<ITADataSource.h>
//
#include <ITAData
s
ourceUtils.h>
#include
<ITAData
S
ourceUtils.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
();
...
...
tests/NetAudio/ITANetAudioTest.cpp
View file @
9c1745ca
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment