Home > freetb4matlab > audio > lin2mu.m

lin2mu

PURPOSE ^

% Converts audio data from linear to mu-law. Mu-law values use 8-bit

SYNOPSIS ^

function y = lin2mu (x, bit)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} lin2mu (@var{x}, @var{n})
% Converts audio data from linear to mu-law.  Mu-law values use 8-bit
% unsigned integers.  Linear values use @var{n}-bit signed integers or 
% floating point values in the range -1<=@var{x}<=1 if @var{n} is 0.  
% If @var{n} is not specified it defaults to 0, 8 or 16 depending on 
% the range values in @var{x}.
% @seealso{mu2lin, loadaudio, saveaudio, playaudio, setaudio, record}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003