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

Adding default config struct for test

parent 0c3d5614
......@@ -23,7 +23,33 @@ int main( int, char** )
{
IVANetServer* pServer = IVANetServer::Create();
pServer->SetCoreInstance( VACore::CreateCoreInstance() );
CVAStruct oDefaultCoreConfig, oAudioDriver, oRenderer, oReproduction, oOutput, oOutputDevice;
oAudioDriver[ "Driver" ] = "Portaudio";
oAudioDriver[ "Device" ] = "default";
oDefaultCoreConfig[ "Audio driver" ] = oAudioDriver;
oRenderer[ "Class" ] = "BinauralFreefield";
oRenderer[ "Enabled" ] = true;
oRenderer[ "Reproductions" ] = "DefaultTalkthrough";
oDefaultCoreConfig[ "Renderer:DefaultBinauralFreefield" ] = oRenderer;
oReproduction[ "Class" ] = "Talkthrough";
oReproduction[ "Enabled" ] = true;
oReproduction[ "Name" ] = "Default talkthrough reproduction";
oReproduction[ "Outputs" ] = "DefaultOutput";
oDefaultCoreConfig[ "Reproduction:DefaultTalkthrough" ] = oReproduction;
oOutput[ "Devices" ] = "DefaultStereoChannels";
oOutput[ "Description" ] = "Default stereo channels (headphones)";
oDefaultCoreConfig[ "Output:DefaultOutput" ] = oOutput;
oOutputDevice[ "Type" ] = "HP";
oOutputDevice[ "Description" ] = "Default headphone hardware device (two-channels)";
oOutputDevice[ "Channels" ] = "1,2";
oDefaultCoreConfig[ "OutputDevice:DefaultStereoChannels" ] = oOutputDevice;
pServer->SetCoreInstance( VACore::CreateCoreInstance( oDefaultCoreConfig ) );
std::string sServerIP = "0.0.0.0";
int iPort = 12340;
......
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