Commit c82f358f authored by Jonas Stienen's avatar Jonas Stienen
Browse files

Fixing bug for repro and renderer list getter (was not returning value, running into assertion)

parent 1c2cce19
...@@ -4075,7 +4075,7 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleGain() ...@@ -4075,7 +4075,7 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleGain()
void CVANetNetworkProtocol::ClientGetRenderingModuleInfos( std::vector< CVAAudioRendererInfo >& voRenderer, bool bFilterEnabled ) 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 ); pMsg->WriteBool( bFilterEnabled );
ClientSendCommand( pMsg ); ClientSendCommand( pMsg );
...@@ -4093,7 +4093,6 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos() ...@@ -4093,7 +4093,6 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos()
std::vector< CVAAudioRendererInfo > voRenderer; std::vector< CVAAudioRendererInfo > voRenderer;
m_pRealCore->GetRenderingModules( voRenderer, bFilterEnabled ); m_pRealCore->GetRenderingModules( voRenderer, bFilterEnabled );
voRenderer.clear();
pMsg->WriteInt( (int) voRenderer.size() ); pMsg->WriteInt( (int) voRenderer.size() );
for( size_t i = 0; i < voRenderer.size(); i++ ) for( size_t i = 0; i < voRenderer.size(); i++ )
pMsg->WriteAudioRenderingModuleInfo( voRenderer[i] ); pMsg->WriteAudioRenderingModuleInfo( voRenderer[i] );
...@@ -4103,13 +4102,12 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos() ...@@ -4103,13 +4102,12 @@ void CVANetNetworkProtocol::ServerGetRenderingModuleInfos()
void CVANetNetworkProtocol::ClientGetReproductionModuleInfos( std::vector< CVAAudioReproductionInfo >& voRepros, bool bFilterEnabled ) 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 ); pMsg->WriteBool( bFilterEnabled );
ClientSendCommand( pMsg ); ClientSendCommand( pMsg );
int iSize = pMsg->ReadInt(); int iSize = pMsg->ReadInt();
voRepros.clear();
for( int i=0; i<iSize; i++ ) for( int i=0; i<iSize; i++ )
voRepros.push_back( pMsg->ReadAudioReproductionModuleInfo() ); voRepros.push_back( pMsg->ReadAudioReproductionModuleInfo() );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment