Commit 2a93618b authored by Jussi Lindgren's avatar Jussi Lindgren

Examples: Fixed convert app to work with spaces in exe paths

- For filenames, using quotes doesn't seem to work; try to escape
the spaces in that case
parent 742212d9
......@@ -16,12 +16,14 @@
<Name>Stimulation name</Name>
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
<Value>OVTK_StimulationId_Label_00</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0xcc14d8d6, 0xf27ecb73)</TypeIdentifier>
<Name>Action to perform</Name>
<DefaultValue>Pause</DefaultValue>
<Value>Stop</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -31,7 +33,7 @@
</Attribute>
<Attribute>
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
<Value>25</Value>
<Value>23</Value>
</Attribute>
<Attribute>
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
......@@ -43,7 +45,7 @@
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
<Value>133</Value>
<Value>118</Value>
</Attribute>
<Attribute>
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
......@@ -77,12 +79,14 @@
<Name>Timeout delay</Name>
<DefaultValue>5</DefaultValue>
<Value>1</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
<Name>Output Stimulation</Name>
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
<Value>OVTK_StimulationId_Label_00</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -92,7 +96,7 @@
</Attribute>
<Attribute>
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
<Value>38</Value>
<Value>33</Value>
</Attribute>
<Attribute>
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
......@@ -104,7 +108,7 @@
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
<Value>69</Value>
<Value>62</Value>
</Attribute>
<Attribute>
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
......@@ -137,10 +141,6 @@
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
<Name>Input stream 3</Name>
</Input>
<Input>
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
<Name>Input stream 4</Name>
</Input>
</Inputs>
<Settings>
<Setting>
......@@ -148,12 +148,14 @@
<Name>Filename</Name>
<DefaultValue>record-[$core{date}-$core{time}].ov</DefaultValue>
<Value>$ENV{OV_CONVERT_DEST}</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
<Name>Use compression</Name>
<DefaultValue>false</DefaultValue>
<Value>false</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -163,7 +165,7 @@
</Attribute>
<Attribute>
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
<Value>38</Value>
<Value>33</Value>
</Attribute>
<Attribute>
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
......@@ -179,7 +181,11 @@
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
<Value>171</Value>
<Value>149</Value>
</Attribute>
<Attribute>
<Identifier>(0xc67a01dc, 0x28ce06c1)</Identifier>
<Value></Value>
</Attribute>
<Attribute>
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
......@@ -219,18 +225,21 @@
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>$ENV{OV_CONVERT_SRC}</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
<Name>Samples per buffer</Name>
<DefaultValue>32</DefaultValue>
<Value>32</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
<Name>Subtract physical minimum</Name>
<DefaultValue>False</DefaultValue>
<Value>False</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -240,7 +249,7 @@
</Attribute>
<Attribute>
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
<Value>25</Value>
<Value>23</Value>
</Attribute>
<Attribute>
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
......@@ -252,11 +261,7 @@
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
<Value>123</Value>
</Attribute>
<Attribute>
<Identifier>(0xc67a01dc, 0x28ce06c1)</Identifier>
<Value></Value>
<Value>107</Value>
</Attribute>
<Attribute>
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
......@@ -287,7 +292,7 @@
<Attributes>
<Attribute>
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
<Value>-429</Value>
<Value>-430</Value>
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
......@@ -295,7 +300,7 @@
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
<Value>-344</Value>
<Value>-341</Value>
</Attribute>
<Attribute>
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
......@@ -316,7 +321,7 @@
<Attributes>
<Attribute>
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
<Value>-429</Value>
<Value>-430</Value>
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
......@@ -324,11 +329,11 @@
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
<Value>-248</Value>
<Value>-245</Value>
</Attribute>
<Attribute>
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
<Value>328</Value>
<Value>336</Value>
</Attribute>
</Attributes>
</Link>
......@@ -345,7 +350,7 @@
<Attributes>
<Attribute>
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
<Value>-295</Value>
<Value>-297</Value>
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
......@@ -353,7 +358,7 @@
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
<Value>-257</Value>
<Value>-256</Value>
</Attribute>
<Attribute>
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
......@@ -374,7 +379,7 @@
<Attributes>
<Attribute>
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
<Value>-429</Value>
<Value>-430</Value>
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
......@@ -382,11 +387,11 @@
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
<Value>-248</Value>
<Value>-245</Value>
</Attribute>
<Attribute>
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
<Value>343</Value>
<Value>351</Value>
</Attribute>
</Attributes>
</Link>
......
......@@ -17,10 +17,6 @@
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
<Name>Output stream 3</Name>
</Output>
<Output>
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
<Name>Output stream 4</Name>
</Output>
</Outputs>
<Settings>
<Setting>
......@@ -28,6 +24,7 @@
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>$ENV{OV_CONVERT_SRC}</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -89,12 +86,14 @@
<Name>Stimulation name</Name>
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
<Value>OVTK_StimulationId_Label_00</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0xcc14d8d6, 0xf27ecb73)</TypeIdentifier>
<Name>Action to perform</Name>
<DefaultValue>Pause</DefaultValue>
<Value>Stop</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -152,6 +151,7 @@
<Name>Filename</Name>
<DefaultValue>record-[$core{date}-$core{time}].gdf</DefaultValue>
<Value>$ENV{OV_CONVERT_DEST}</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -175,10 +175,6 @@
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
<Value>103</Value>
</Attribute>
<Attribute>
<Identifier>(0xc67a01dc, 0x28ce06c1)</Identifier>
<Value></Value>
</Attribute>
<Attribute>
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
<Value>1</Value>
......@@ -211,12 +207,14 @@
<Name>Timeout delay</Name>
<DefaultValue>5</DefaultValue>
<Value>1</Value>
<Modifiability>false</Modifiability>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
<Name>Output Stimulation</Name>
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
<Value>OVTK_StimulationId_Label_00</Value>
<Modifiability>false</Modifiability>
</Setting>
</Settings>
<Attributes>
......@@ -273,7 +271,7 @@
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
<Value>344</Value>
<Value>352</Value>
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
......@@ -302,7 +300,7 @@
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
<Value>359</Value>
<Value>367</Value>
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
......@@ -360,7 +358,7 @@
</Attribute>
<Attribute>
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
<Value>344</Value>
<Value>352</Value>
</Attribute>
<Attribute>
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
......@@ -373,6 +371,7 @@
</Attributes>
</Link>
</Links>
<MessageLinks></MessageLinks>
<Comments>
<Comment>
<Identifier>(0x00001613, 0x000008d3)</Identifier>
......
......@@ -80,8 +80,8 @@ set OV_CONVERT_SRC=%1
set OV_CONVERT_DEST=%2
REM launch designer
REM echo %OV_PATH_BIN%\openvibe-designer --no-gui --no-session-management --play-fast !ScenarioFolder!!ScenarioToOpen!
%OV_PATH_BIN%\openvibe-designer --no-gui --no-session-management --play-fast !ScenarioFolder!!ScenarioToOpen!
REM echo "%OV_PATH_BIN%\openvibe-designer" --no-gui --no-session-management --play-fast "!ScenarioFolder!!ScenarioToOpen!"
"%OV_PATH_BIN%\openvibe-designer" --no-gui --no-session-management --play-fast "!ScenarioFolder!!ScenarioToOpen!"
endlocal
......@@ -85,7 +85,7 @@ if [ $From ] && [ $To ]; then
export OV_CONVERT_DEST=$2
#launch designer
$LOCAL_BIN_PATH/openvibe-designer --no-gui --no-session-management --play-fast $ScenarioFolder$ScenarioToOpen
"$LOCAL_BIN_PATH/openvibe-designer" --no-gui --no-session-management --play-fast "$ScenarioFolder$ScenarioToOpen"
fi
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