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
3531b26a
Commit
3531b26a
authored
Mar 31, 2017
by
Anne Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug auskommentiert
parent
be88dcb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ITANetAudioMessage.cpp
src/ITANetAudioMessage.cpp
+5
-3
tests/NetAudio/ITANetAudioTest.cpp
tests/NetAudio/ITANetAudioTest.cpp
+1
-1
No files found.
src/ITANetAudioMessage.cpp
View file @
3531b26a
...
...
@@ -155,7 +155,8 @@ void CITANetAudioMessage::WriteMessage()
oLog
.
sAction
=
"write_message"
;
oLog
.
dInternalProcessingTime
=
ITAClock
::
getDefaultClock
()
->
getTime
()
-
dInTime
;
m_pMessageLogger
->
log
(
oLog
);
std
::
cout
<<
GetMessageLoggerBaseName
()
<<
" Write: Groesse:"
<<
oLog
.
nMessagePayloadSize
<<
" MsgType:"
<<
oLog
.
sMessageType
<<
" MsgID: "
<<
oLog
.
uiBlockId
<<
std
::
endl
;
//std::cout << GetMessageLoggerBaseName() << " Write: Groesse:" << oLog.nMessagePayloadSize << " MsgType:" << oLog.sMessageType << " MsgID: " << oLog.uiBlockId << std::endl;
#if NET_AUDIO_SHOW_TRAFFIC
vstr
::
out
()
<<
"CITANetAudioMessage [ Writing] "
<<
m_nMessageType
<<
" (id="
<<
std
::
setw
(
4
)
<<
m_nMessageId
<<
")"
<<
std
::
endl
;
...
...
@@ -215,7 +216,7 @@ bool CITANetAudioMessage::ReadMessage( int timeout )
// we need at least the two protocol ints
//assert( nMessagePayloadSize >= 2 * sizeof( VistaType::sint32 ) );
std
::
cout
<<
GetMessageLoggerBaseName
()
<<
" Read: "
<<
nMessagePayloadSize
<<
std
::
endl
;
//
std::cout << GetMessageLoggerBaseName() << " Read: " << nMessagePayloadSize << std::endl;
if
(
nMessagePayloadSize
>
(
int
)
m_vecIncomingBuffer
.
size
()
)
m_vecIncomingBuffer
.
resize
(
nMessagePayloadSize
);
...
...
@@ -242,7 +243,8 @@ bool CITANetAudioMessage::ReadMessage( int timeout )
m_oIncoming
.
SetBuffer
(
&
m_vecIncomingBuffer
[
0
],
nMessagePayloadSize
,
false
);
m_nMessageType
=
ReadInt
();
m_nMessageId
=
ReadInt
();
std
::
cout
<<
GetMessageLoggerBaseName
()
<<
" Read: MsgType:"
<<
m_nMessageType
<<
" MsgID: "
<<
m_nMessageId
<<
std
::
endl
;
//std::cout << GetMessageLoggerBaseName() << " Read: MsgType:" << m_nMessageType << " MsgID: " << m_nMessageId << std::endl;
oLog
.
sMessageType
=
CITANetAudioProtocol
::
GetNPMessageID
(
m_nMessageType
);
oLog
.
uiBlockId
=
m_nMessageId
;
...
...
tests/NetAudio/ITANetAudioTest.cpp
View file @
3531b26a
...
...
@@ -23,7 +23,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
=
32
;
const
static
int
g_iBlockLength
=
128
;
const
static
int
g_iChannels
=
100
;
const
static
int
g_iTargetLatencySamples
=
g_iBlockLength
*
10
;
const
static
int
g_iRingerBufferCapacity
=
g_iBlockLength
*
20
;
...
...
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