function M= my_new_module(NAME, MAXDELAY)
% M = my_new_module(NAME)
% Copies input pin data to the output pin.
%
% Arguments:
% NAME - name of the module
%

% AudioWeaverModule [This tag makes it appear under awe_help]

% ----------------------------------------------------------------------
% Set default input values
% ----------------------------------------------------------------------

if (nargin < 2) || isempty(MAXDELAY)
    MAXDELAY = 4096;
end


M=awe_module('MyNew', 'Copies input wire to output wire');


% ----------------------------------------------------------------------
% Add the arguments
% ----------------------------------------------------------------------

add_argument(M, 'maxDelay', 'int', MAXDELAY, 'const', 'max delay (samples)');



if (nargin == 0)
 return;
end

M.name=NAME;
M.defaultName='MyNew';

% Add input and output pins with no data or size restrictions
PT=new_pin_type([], [], [], '*32', []);
add_pin(M, 'input', 'in', 'Input signal', PT);
add_pin(M, 'output', 'out', 'Output signal', PT);

% ----------------------------------------------------------------------
% Add the variables
% ----------------------------------------------------------------------

% ----------------------------------------------------------------------
% Code generation details
% ----------------------------------------------------------------------
awe_addcodemarker(M, 'processFunction', 'Insert:\InnerMyNew_Process.c');
awe_addcodemarker(M, 'discussion', {'Copies the input to the output. '});

% ----------------------------------------------------------------------
% Module browser information
% ----------------------------------------------------------------------
M.moduleBrowser.path = 'Third Party';
M.moduleBrowser.image = '../images/MyNew.bmp';
M.moduleBrowser.searchTags = 'pass thru through copy';
return;
