From ae71860fe8cda03305a9934feae507e75835dc82 Mon Sep 17 00:00:00 2001 From: manu Date: Mon, 10 Dec 2007 15:33:32 +0000 Subject: [PATCH] Create config/ASIO.m config file git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@133 5fc3e0e6-29bc-4d03-b52b-c088cb822bde --- CNAQ.m | 24 +++++------------------- config/ASIO.m | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 config/ASIO.m diff --git a/CNAQ.m b/CNAQ.m index 25c714b..0399b12 100644 --- a/CNAQ.m +++ b/CNAQ.m @@ -112,25 +112,8 @@ varargout{1} = handles.output; % ============================================================== cnaq_version = '0.1'; - -% ============================================================== -% PARAMETERS (IMPORTANT !) + % ============================================================== - -% The ASIO device number in the audio sytem -device = 0; - -% The number of samples in the buffer of the sound card -% (delay * f_s = latency time) -% It IS necessary that you compute this value BEFORE any measurement -% executing ./tools/get_latency.m in MATLAB like this : -% >> get_latency(DEVICE, N) -% where DEVICE is the device number (see above) and N the number of -% successive measurements -% If this value is wrong, the phasis results might be also wrong... -% BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system -% settings) -latency = 1424; % ============================================================== @@ -138,13 +121,16 @@ latency = 1424; % ============================================================== root_dir = pwd; % The directory where CNAQ is installed -%cnaq_path = pwd; cnaq_path = root_dir; +config_path = [cnaq_path '\config\']; tools_path = [cnaq_path '\tools\']; pa_path = [cnaq_path '\pa_wavplay\']; path(path, cnaq_path); path(path, tools_path); path(path, pa_path); +path(path, config_path); + +[device, latency] = ASIO(); home_dir = uigetdir(root_dir, 'Choisissez votre dossier de travail'); % Get/Set ID diff --git a/config/ASIO.m b/config/ASIO.m new file mode 100644 index 0000000..a61b613 --- /dev/null +++ b/config/ASIO.m @@ -0,0 +1,19 @@ +% Config For your ASIO audio card +% ================================ + +function [device, latency] = ASIO() + +% The ASIO device number in the audio sytem +device = 0; + +% The number of samples in the buffer of the sound card +% (delay * f_s = latency time) +% It IS necessary that you compute this value BEFORE any measurement +% executing ./tools/get_latency.m in MATLAB like this : +% >> get_latency(DEVICE, N) +% where DEVICE is the device number (see above) and N the number of +% successive measurements +% If this value is wrong, the phasis results might be also wrong... +% BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system +% settings) +latency = 1424; \ No newline at end of file -- 2.39.5