Skip to content
GitLab
Menu
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
4ac135c6
Commit
4ac135c6
authored
Mar 24, 2017
by
Anne Heimes
Browse files
bugfixes
parent
a898d8fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/ITANetAudioStreamingClient.h
View file @
4ac135c6
...
...
@@ -79,6 +79,7 @@ private:
bool
m_bStopIndicated
;
bool
m_bStopped
;
double
m_dLastAckknowlengementTimeStamp
;
int
n
;
int
iStreamingBlockId
;
ITABufferedDataLoggerImplClient
*
m_pClientLogger
;
...
...
src/ITANetAudioStreamingClient.cpp
View file @
4ac135c6
...
...
@@ -53,7 +53,7 @@ CITANetAudioStreamingClient::CITANetAudioStreamingClient( CITANetAudioStream* pP
,
m_bStopped
(
false
)
{
m_pClient
=
new
CITANetAudioClient
();
n
=
0
;
m_oParams
.
iChannels
=
pParent
->
GetNumberOfChannels
();
m_oParams
.
dSampleRate
=
pParent
->
GetSampleRate
(
);
m_oParams
.
iBlockSize
=
pParent
->
GetBlocklength
();
...
...
@@ -160,6 +160,7 @@ bool CITANetAudioStreamingClient::LoopBody()
#ifdef NET_AUDIO_SHOW_TRAFFIC
vstr
::
out
()
<<
"[ITANetAudioStreamingClient] Recived "
<<
m_sfReceivingBuffer
.
GetLength
()
<<
" samples"
<<
std
::
endl
;
#endif
n
++
;
break
;
case
CITANetAudioProtocol
::
NP_SERVER_GET_RINGBUFFER_FREE_SAMPLES
:
m_pMessage
->
ReadBool
();
...
...
tests/NetAudio/ITANetAudioStreamingClientTest.cpp
View file @
4ac135c6
...
...
@@ -41,7 +41,7 @@ int main(int argc, char* argv[])
for
(
int
i
=
0
;
i
<
N
;
i
++
)
oPatchbay
.
ConnectChannels
(
0
,
i
,
0
,
i
%
2
,
1
/
double
(
N
)
);
ITAStreamProbe
oProbe
(
oPatchbay
.
GetOutputDatasource
(
iOutputID
),
"ITANetAudioTest.stream.wav"
);
//
ITAStreamProbe oProbe( oPatchbay.GetOutputDatasource( iOutputID ), "ITANetAudioTest.stream.wav" );
ITAsioInitializeLibrary
();
...
...
@@ -90,7 +90,7 @@ int main(int argc, char* argv[])
}
ITAsioSetPlaybackDatasource
(
&
oP
robe
);
ITAsioSetPlaybackDatasource
(
oP
atchbay
.
GetOutputDatasource
(
iOutputID
)
);
if
(
ITAsioStart
()
!=
ASE_OK
)
{
ITAsioFinalizeLibrary
();
...
...
Write
Preview
Supports
Markdown
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