Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITADataSources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITADataSources
Commits
9c1745ca
Commit
9c1745ca
authored
Feb 03, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiling errors fixed.
parent
1a339b87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
tests/ITAPortaudioTests/ITAPortaudioInterfaceRecorder.cpp
tests/ITAPortaudioTests/ITAPortaudioInterfaceRecorder.cpp
+4
-4
tests/NetAudio/ITANetAudioTest.cpp
tests/NetAudio/ITANetAudioTest.cpp
+8
-8
No files found.
tests/ITAPortaudioTests/ITAPortaudioInterfaceRecorder.cpp
View file @
9c1745ca
#include <ITAPortaudioInterface.h>
#include <ITADataSource.h>
//#include <ITADatas
ourceUtils.h>
#include <ITADataS
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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