comparison scripts/audio/mu2lin.m @ 2311:2b5788792cad

[project @ 1996-07-11 20:18:38 by jwe]
author jwe
date Thu, 11 Jul 1996 20:18:38 +0000
parents 5cffc4b8de57
children 204cc7db6f4a
comparison
equal deleted inserted replaced
2310:e2a8f216373d 2311:2b5788792cad
15 ### You should have received a copy of the GNU General Public License 15 ### You should have received a copy of the GNU General Public License
16 ### along with Octave; see the file COPYING. If not, write to the Free 16 ### along with Octave; see the file COPYING. If not, write to the Free
17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ### 02111-1307, USA. 18 ### 02111-1307, USA.
19 19
20 ## usage: y = mu2lin (x [, bit])
21 ##
22 ## If x is a vector of audio data with mu-law encoding, mu2lin (x)
23 ## holds the same data with linear encoding.
24 ## The optional argument bit specifies whether the input data is
25 ## 8 bit (default) or 16 bit.
26
20 function y = mu2lin (x, bit) 27 function y = mu2lin (x, bit)
21 28
22 ## usage: y = mu2lin (x [, bit])
23 ##
24 ## If x is a vector of audio data with mu-law encoding, mu2lin (x)
25 ## holds the same data with linear encoding.
26 ## The optional argument bit specifies whether the input data is
27 ## 8 bit (default) or 16 bit.
28
29 ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 18, 1994 29 ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 18, 1994
30 ## Updated by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 27, 1994 30 ## Updated by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 27, 1994
31 ## Copyright Department of Probability Theory and Statistics TU Wien 31 ## Copyright Department of Probability Theory and Statistics TU Wien
32 32
33 if (nargin == 1) 33 if (nargin == 1)