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
a4a9fd6d
Commit
a4a9fd6d
authored
Mar 29, 2017
by
Anne Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log datei serverblocklänge hinzugefügt
parent
df4aa311
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
tests/NetAudio/ITANetAudioStreamingClientTest.cpp
tests/NetAudio/ITANetAudioStreamingClientTest.cpp
+3
-0
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
+1
-0
tests/NetAudio/ITANetAudioTest.cpp
tests/NetAudio/ITANetAudioTest.cpp
+1
-1
No files found.
tests/NetAudio/ITANetAudioStreamingClientTest.cpp
View file @
a4a9fd6d
...
...
@@ -21,6 +21,7 @@ int g_iBlockLength = 32;
int
g_iChannels
=
2
;
int
g_iTargetLatencySamples
=
2
*
g_iBlockLength
;
// 1.4512ms
int
g_iRingBufferSize
=
2
*
g_iTargetLatencySamples
;
int
g_iSendingBlockLength
=
8
;
double
g_dPlaybackDuration
=
10
;
// seconds
int
main
(
int
argc
,
char
*
argv
[]
)
...
...
@@ -37,6 +38,7 @@ int main( int argc, char* argv[] )
g_iChannels
=
atoi
(
argv
[
5
]);
g_iTargetLatencySamples
=
atoi
(
argv
[
6
]);
g_iRingBufferSize
=
atoi
(
argv
[
7
]);
g_iSendingBlockLength
=
atoi
(
argv
[
8
]);
}
if
(
argc
>=
9
)
...
...
@@ -58,6 +60,7 @@ int main( int argc, char* argv[] )
ss
<<
"_B"
<<
g_iBlockLength
;
ss
<<
"_TL"
<<
g_iTargetLatencySamples
;
ss
<<
"_RB"
<<
g_iRingBufferSize
;
ss
<<
"_SB"
<<
g_iSendingBlockLength
;
oNetAudioStream
.
SetNetAudioStreamingLoggerBaseName
(
ss
.
str
()
);
ITAStreamPatchbay
oPatchbay
(
g_dSampleRate
,
g_iBlockLength
);
...
...
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
View file @
a4a9fd6d
...
...
@@ -69,6 +69,7 @@ int main( int argc, char** argv )
ss
<<
"_B"
<<
g_iBlockLength
;
ss
<<
"_TL"
<<
g_iTargetLatencySamples
;
ss
<<
"_RB"
<<
g_iRingBufferSize
;
ss
<<
"_SB"
<<
g_iSendingBlockLength
;
oStreamingServer
.
SetServerLogBaseName
(
ss
.
str
()
);
oStreamingServer
.
SetInputStream
(
&
oMuliplier
);
...
...
tests/NetAudio/ITANetAudioTest.cpp
View file @
a4a9fd6d
...
...
@@ -24,7 +24,7 @@ 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
=
256
;
const
static
int
g_iBlockLength
=
32
;
const
static
int
g_iChannels
=
2
;
const
static
int
g_iTargetLatencySamples
=
g_iBlockLength
*
1
;
const
static
int
g_iRingerBufferCapacity
=
g_iBlockLength
*
5
;
...
...
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