Home > freetb4matlab > audio > loadaudio.m

loadaudio

PURPOSE ^

% Loads audio data from the file @file{@var{name}.@var{ext}} into the

SYNOPSIS ^

function X = loadaudio (name, ext, bit)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} loadaudio (@var{name}, @var{ext}, @var{bps})
% Loads audio data from the file @file{@var{name}.@var{ext}} into the
% vector @var{x}.
%
% The extension @var{ext} determines how the data in the audio file is
% interpreted;  the extensions @file{lin} (default) and @file{raw}
% correspond to linear, the extensions @file{au}, @file{mu}, or @file{snd}
% to mu-law encoding.
%
% The argument @var{bps} can be either 8 (default) or 16, and specifies
% the number of bits per sample used in the audio file.
% @seealso{lin2mu, mu2lin, saveaudio, playaudio, setaudio, record}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003