Package toxi.audio

Class DecompressInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class DecompressInputStream extends FilterInputStream

Convert A-Law or u-Law byte stream into mono PCM byte stream

static AudioFormat alawformat= new AudioFormat(AudioFormat.Encoding.ALAW,8000,8,1,1,8000,false); static AudioFormat ulawformat= new AudioFormat(AudioFormat.Encoding.ULAW,8000,8,1,1,8000,false);

PCM 8000.0 Hz, 16 bit, mono, SIGNED, little-endian

static AudioFormat pcmformat = new AudioFormat(8000,16,1,true,false);

From: Mathematical Tools in Signal Processing with C++ and Java Simulations by Willi-Hans Steeb International School for Scientific Computing