system(fullfile(deployDir,'\bin\Redstart.exe -a &'));% -a for autostart (runs last activated session), -s to run in safe mode (overrides autostart flag)
pause(1)% start-up may take some time on old PC's, pause() to avoid error
end
end
%% Step 1:
% VAsel = 0: VAServer.exe was started based on the configuration in VAini.exe and currently is running
% VAsel = 1: Create a session under the menu item Redstart and press the start button in Redstart VA GUI
if~exist('firstStart','var')
firstStart=true;
end
ifVAsel==1&&firstStart==true
fprintf('(1) Create a session under the menu item Redstart.\n(2) Press the start button in Redstart VA GUI.\n(3) Press any button in Matlab to continue.\n')
firstStart=false;
pause
end
%% Step 2: Create itaVA object and connect to VAServer
a=itaVA;
...
...
@@ -86,8 +71,11 @@ a.set_output_gain(0.3); % value between 0 (-inf dB) and 1 (0 dB)
% % query available reproduction modules (cf. VACore.ini)