]> git.parisson.com Git - cnaq.git/commitdiff
Create config/ASIO.m config file
authormanu <manu@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Mon, 10 Dec 2007 15:33:32 +0000 (15:33 +0000)
committermanu <manu@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Mon, 10 Dec 2007 15:33:32 +0000 (15:33 +0000)
git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@133 5fc3e0e6-29bc-4d03-b52b-c088cb822bde

CNAQ.m
config/ASIO.m [new file with mode: 0644]

diff --git a/CNAQ.m b/CNAQ.m
index 25c714bfa6f8610a75dafc57ec8f9bc9a1ccc395..0399b124f19c91e1c0d81df7fe146b0e4db1ec38 100644 (file)
--- a/CNAQ.m
+++ b/CNAQ.m
@@ -112,25 +112,8 @@ varargout{1} = handles.output;
 % ==============================================================\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
@@ -138,13 +121,16 @@ latency = 1424;
 % ==============================================================\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
diff --git a/config/ASIO.m b/config/ASIO.m
new file mode 100644 (file)
index 0000000..a61b613
--- /dev/null
@@ -0,0 +1,19 @@
+% 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