Home > freetb4matlab > audio > wavread.m

wavread

PURPOSE ^

% Load the RIFF/WAVE sound file @var{filename}, and return the samples

SYNOPSIS ^

function [y, samples_per_sec, bits_per_sample] = wavread (filename, param)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{y} =} wavread (@var{filename})
% Load the RIFF/WAVE sound file @var{filename}, and return the samples
% in vector @var{y}.  If the file contains multichannel data, then
% @var{y} is a matrix with the channels represented as columns.
%
% @deftypefnx {Function File} {[@var{y}, @var{Fs}, @var{bits}] =} wavread (@var{filename})
% Additionally return the sample rate (@var{fs}) in Hz and the number of bits 
% per sample (@var{bits}).
%
% @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename}, @var{n})
% Read only the first @var{n} samples from each channel.
%
% @deftypefnx {Function File} {[@dots{}] =} wavread (@var{filename},[@var{n1} @var{n2}])
% Read only samples @var{n1} through @var{n2} from each channel.
%
% @deftypefnx {Function File} {[@var{samples}, @var{channels}] =} wavread (@var{filename}, 'size')
% Return the number of samples (@var{n}) and channels (@var{ch})
% instead of the audio data.
% @seealso{wavwrite}
% @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