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)
VANet
Commits
c82f358f
Commit
c82f358f
authored
Nov 29, 2016
by
Jonas Stienen
Browse files
Fixing bug for repro and renderer list getter (was not returning value, running into assertion)
parent
1c2cce19
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VANetNetworkProtocol.cpp
View file @
c82f358f
...
...
@@ -4075,7 +4075,7 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleGain()
void
CVANetNetworkProtocol
::
ClientGetRenderingModuleInfos
(
std
::
vector
<
CVAAudioRendererInfo
>&
voRenderer
,
bool
bFilterEnabled
)
{
CVANetMessage
*
pMsg
=
ClientInitMessage
(
VA_NP_RENDERER_GET_INFOS
,
MESSAGE_
ALLOWS_BUFFERING
);
CVANetMessage
*
pMsg
=
ClientInitMessage
(
VA_NP_RENDERER_GET_INFOS
,
MESSAGE_
WITH_ANSWER
);
pMsg
->
WriteBool
(
bFilterEnabled
);
ClientSendCommand
(
pMsg
);
...
...
@@ -4093,7 +4093,6 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos()
std
::
vector
<
CVAAudioRendererInfo
>
voRenderer
;
m_pRealCore
->
GetRenderingModules
(
voRenderer
,
bFilterEnabled
);
voRenderer
.
clear
();
pMsg
->
WriteInt
(
(
int
)
voRenderer
.
size
()
);
for
(
size_t
i
=
0
;
i
<
voRenderer
.
size
();
i
++
)
pMsg
->
WriteAudioRenderingModuleInfo
(
voRenderer
[
i
]
);
...
...
@@ -4103,13 +4102,12 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos()
void
CVANetNetworkProtocol
::
ClientGetReproductionModuleInfos
(
std
::
vector
<
CVAAudioReproductionInfo
>&
voRepros
,
bool
bFilterEnabled
)
{
CVANetMessage
*
pMsg
=
ClientInitMessage
(
VA_NP_REPRODUCTION_GET_INFOS
,
MESSAGE_
ALLOWS_BUFFERING
);
CVANetMessage
*
pMsg
=
ClientInitMessage
(
VA_NP_REPRODUCTION_GET_INFOS
,
MESSAGE_
WITH_ANSWER
);
pMsg
->
WriteBool
(
bFilterEnabled
);
ClientSendCommand
(
pMsg
);
int
iSize
=
pMsg
->
ReadInt
();
voRepros
.
clear
();
for
(
int
i
=
0
;
i
<
iSize
;
i
++
)
voRepros
.
push_back
(
pMsg
->
ReadAudioReproductionModuleInfo
()
);
}
...
...
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