Commit 7d5c1742 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Improving output of VANet test cliet

parent 514be847
......@@ -36,7 +36,13 @@ int main( int, char** )
int nState = pClient->GetCoreInstance()->GetState();
if( nState != IVAInterface::VA_CORESTATE_READY )
{
cout << "Server ready but not audio streaming not started, initializing ... ";
pClient->GetCoreInstance()->Initialize();
cout << "done" << endl;
}
cout << "Type d,m,s,b,e,j,q + ENTER for test actions" << endl;
bool bContinue = true;
bool bMute = false;
......@@ -53,8 +59,8 @@ int main( int, char** )
break;
case 'd':
{
int iRet = pClient->GetCoreInstance()->CreateDirectivityFromFile( "test", "testname" );
std::cout << "LoadDirectivity( test, testname ) = " << iRet << std::endl;
int iRet = pClient->GetCoreInstance()->CreateDirectivityFromFile( "ITA_Kunstkopf.v17.ir.daff", "Test HRIR" );
std::cout << "CreateDirectivityFromFile( 'ITA_Kunstkopf.v17.ir.daff', 'Test HRIR' ) = " << iRet << std::endl;
break;
}
case 'm':
......@@ -63,32 +69,32 @@ int main( int, char** )
pClient->GetCoreInstance()->SetOutputMuted( bMute );
std::cout << "SetOutputMuted( " << bMute << " ) called" << std::endl;
bool bIsMuted = pClient->GetCoreInstance()->GetOutputMuted();
std::cout << "IsOutputMuted() = " << bIsMuted << std::endl;
std::cout << "GetOutputMuted() = " << bIsMuted << std::endl;
break;
}
case 's':
{
bMute = !bMute;
pClient->GetCoreInstance()->SetOutputMuted( bMute );
std::cout << "SetListenerPosition( " << bMute << " ) called" << std::endl;
pClient->GetCoreInstance()->SetSoundReceiverPosition( 0, VAVec3( 1, 2, 3 ) );
auto id = pClient->GetCoreInstance()->CreateSoundReceiver();
std::cout << "CreateSoundReceiver() called" << std::endl;
pClient->GetCoreInstance()->SetSoundReceiverPosition( id, VAVec3( 1, 2, 3 ) );
std::cout << "SetSoundReceiverPosition( ... ) called" << std::endl;
break;
}
case 'b':
{
pClient->GetCoreInstance()->LockUpdate();
std::cout << "LockScene() called" << std::endl;
std::cout << "LockUpdate() called" << std::endl;
break;
}
case 'e':
{
int iNum = pClient->GetCoreInstance()->UnlockUpdate();
std::cout << "UnlockScene() = " << iNum << std::endl;
std::cout << "UnlockUpdate() = " << iNum << std::endl;
break;
}
case 'j':
{
string sModuleID = "PrototypeGenericPath:MyGenericRenderer";
string sModuleID = "MyGenericRenderer";
CVAStruct oArgs, oRet;
oArgs[ "info" ] = true;
......@@ -104,8 +110,8 @@ int main( int, char** )
oArgs[ "ch1" ] = CVAStructValue( &vfData[ 0 ], int( vfData.size() * sizeof( float ) ) );
oArgs[ "ch2" ] = CVAStructValue( &vfData[ 0 ], int( vfData.size() * sizeof( float ) ) );
oArgs[ "verbose" ] = true;
oRet = pClient->GetCoreInstance()->CallModule( sModuleID, oArgs );
cout << oRet << endl;
pClient->GetCoreInstance()->SetRenderingModuleParameters( sModuleID, oArgs );
std::cout << "Called SetRenderingModuleParameters( ... ) with some parameters" << std::endl;
break;
}
......
Markdown is supported
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