% ==============================================================\r
\r
cnaq_version = '0.1';\r
- \r
-% ==============================================================\r
-% PARAMETERS (IMPORTANT !)\r
+\r
% ==============================================================\r
- \r
-% The ASIO device number in the audio sytem\r
-device = 0; \r
-\r
-% The number of samples in the buffer of the sound card\r
-% (delay * f_s = latency time)\r
-% It IS necessary that you compute this value BEFORE any measurement\r
-% executing ./tools/get_latency.m in MATLAB like this :\r
-% >> get_latency(DEVICE, N)\r
-% where DEVICE is the device number (see above) and N the number of \r
-% successive measurements\r
-% If this value is wrong, the phasis results might be also wrong...\r
-% BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system\r
-% settings)\r
-latency = 1424;\r
\r
\r
% ==============================================================\r
% ==============================================================\r
\r
root_dir = pwd; % The directory where CNAQ is installed\r
-%cnaq_path = pwd;\r
cnaq_path = root_dir;\r
+config_path = [cnaq_path '\config\'];\r
tools_path = [cnaq_path '\tools\'];\r
pa_path = [cnaq_path '\pa_wavplay\'];\r
path(path, cnaq_path);\r
path(path, tools_path);\r
path(path, pa_path);\r
+path(path, config_path);\r
+\r
+[device, latency] = ASIO();\r
home_dir = uigetdir(root_dir, 'Choisissez votre dossier de travail');\r
\r
% Get/Set ID\r
--- /dev/null
+% Config For your ASIO audio card\r
+% ================================\r
+\r
+function [device, latency] = ASIO()\r
+\r
+% The ASIO device number in the audio sytem\r
+device = 0; \r
+\r
+% The number of samples in the buffer of the sound card\r
+% (delay * f_s = latency time)\r
+% It IS necessary that you compute this value BEFORE any measurement\r
+% executing ./tools/get_latency.m in MATLAB like this :\r
+% >> get_latency(DEVICE, N)\r
+% where DEVICE is the device number (see above) and N the number of \r
+% successive measurements\r
+% If this value is wrong, the phasis results might be also wrong...\r
+% BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system\r
+% settings)\r
+latency = 1424;
\ No newline at end of file