Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ITADataSources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
ITADataSources
Commits
c80e1b78
Commit
c80e1b78
authored
8 years ago
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Downloads
Plain Diff
Merge branch 'ba_2016_heimes' of
https://git.rwth-aachen.de/ita/ITADataSources
into ba_2016_heimes
parents
df011b81
ecbe89dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
+7
-3
7 additions, 3 deletions
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
with
7 additions
and
3 deletions
tests/NetAudio/ITANetAudioStreamingServerTest.cpp
+
7
−
3
View file @
c80e1b78
...
@@ -21,13 +21,14 @@ int g_iTargetLatencySamples = 10 * g_iBlockLength; // 1.4512ms
...
@@ -21,13 +21,14 @@ int g_iTargetLatencySamples = 10 * g_iBlockLength; // 1.4512ms
int
g_iRingBufferSize
=
2
*
g_iTargetLatencySamples
;
int
g_iRingBufferSize
=
2
*
g_iTargetLatencySamples
;
int
g_iSendingBlockLength
=
8
;
int
g_iSendingBlockLength
=
8
;
double
g_dClientStatusMessageTimeout
=
0.001
;
// seconds
double
g_dClientStatusMessageTimeout
=
0.001
;
// seconds
double
g_dEstimatiedCorrFactor
=
1
;
string
g_sFileName
=
"gershwin-mono.wav"
;
string
g_sFileName
=
"gershwin-mono.wav"
;
bool
g_bDebuggingEnabled
=
true
;
bool
g_bDebuggingEnabled
=
true
;
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
if
(
argc
>=
8
)
if
(
argc
>=
9
)
{
{
g_sServerName
=
argv
[
1
];
g_sServerName
=
argv
[
1
];
...
@@ -41,10 +42,12 @@ int main( int argc, char** argv )
...
@@ -41,10 +42,12 @@ int main( int argc, char** argv )
g_iRingBufferSize
=
atoi
(
argv
[
7
]);
g_iRingBufferSize
=
atoi
(
argv
[
7
]);
g_iSendingBlockLength
=
atoi
(
argv
[
8
]);
g_iSendingBlockLength
=
atoi
(
argv
[
8
]);
}
}
if
(
argc
>=
9
)
g_dEstimatiedCorrFactor
=
atoi
(
argv
[
9
]);
}
}
else
else
{
{
cout
<<
"Syntax: ServerName ServerPort SampleRate BufferSize Channel TargetLatencySamples RingBufferSize SnedingBlockLength"
<<
endl
;
cout
<<
"Syntax: ServerName ServerPort SampleRate BufferSize Channel TargetLatencySamples RingBufferSize SnedingBlockLength
EstimatiedCorrFactor
"
<<
endl
;
cout
<<
"Using default values ..."
<<
endl
;
cout
<<
"Using default values ..."
<<
endl
;
}
}
...
@@ -72,9 +75,10 @@ int main( int argc, char** argv )
...
@@ -72,9 +75,10 @@ int main( int argc, char** argv )
ss
<<
"_TL"
<<
g_iTargetLatencySamples
;
ss
<<
"_TL"
<<
g_iTargetLatencySamples
;
ss
<<
"_RB"
<<
g_iRingBufferSize
;
ss
<<
"_RB"
<<
g_iRingBufferSize
;
ss
<<
"_SB"
<<
g_iSendingBlockLength
;
ss
<<
"_SB"
<<
g_iSendingBlockLength
;
ss
<<
"_EC"
<<
g_dEstimatiedCorrFactor
;
oStreamingServer
.
SetServerLogBaseName
(
ss
.
str
()
);
oStreamingServer
.
SetServerLogBaseName
(
ss
.
str
()
);
oStreamingServer
.
SetDebuggingEnabled
(
g_bDebuggingEnabled
);
oStreamingServer
.
SetDebuggingEnabled
(
g_bDebuggingEnabled
);
oStreamingServer
.
SetEstimatedCorrFactor
(
g_dEstimatiedCorrFactor
);
oStreamingServer
.
SetInputStream
(
&
oMuliplier
);
oStreamingServer
.
SetInputStream
(
&
oMuliplier
);
oStreamingServer
.
SetTargetLatencySamples
(
g_iTargetLatencySamples
);
oStreamingServer
.
SetTargetLatencySamples
(
g_iTargetLatencySamples
);
oStreamingServer
.
SetSendingBlockLength
(
g_iSendingBlockLength
);
oStreamingServer
.
SetSendingBlockLength
(
g_iSendingBlockLength
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment