Home > freetb4matlab > audio > mu2lin.m

mu2lin

PURPOSE ^

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

SYNOPSIS ^

function y = mu2lin (x, bit)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} mu2lin (@var{x}, @var{bps})
% Converts audio data from linear to mu-law.  Mu-law values are 8-bit
% unsigned integers.  Linear values use @var{n}-bit signed integers
% or floating point values in the range -1<=y<=1 if @var{n} is 0.  If
% @var{n} is not specified it defaults to 8.
% @seealso{lin2mu, loadaudio, 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