Skip to content
GitLab
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
fed2471c
Commit
fed2471c
authored
Oct 06, 2020
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding default config struct for test
parent
0c3d5614
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/TestServer/VANetServerTest.cpp
View file @
fed2471c
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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