    All Packages    This Package    Previous    Next

# Class browser.audio.AudioStream

    java.lang.Object
       |
       +----java.io.InputStream
               |
               +----java.io.FilterInputStream
                       |
                       +----browser.audio.AudioStream

public class AudioStream
extends FilterInputStream

Convert an InputStream to an AudioInputStream. It can only read SUN .au files, 8 bit ulaw, 8000hz. one channel. It eats the header information.

See Also:
  AudioPlayer
Author:
  Arthur van Hoff
Version:
  1.7, 14 Mar 1995

##

AudioStream(InputStream)
  Read header, only sun 8 bit, ulaw encoded, single channel, 8000hz is supported

##

getData()
  Get the data.
read(byte[], int, int)
  A blocking read.

##

AudioStream

      public AudioStream(InputStream in)

  Read header, only sun 8 bit, ulaw encoded, single channel, 8000hz is supported

##

read

      public int read(byte buf[],
                      int pos,
                      int len)

  A blocking read.
  Overrides:
    read in class FilterInputStream

getData

      public AudioData getData()

  Get the data.

    All Packages    This Package    Previous    Next