Java javax.sound.sampled AudioInputStream fields, constructors, methods, implement or subclass

Example usage for Java javax.sound.sampled AudioInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.sound.sampled AudioInputStream.

The text is from its open source code.

Constructor

AudioInputStream(InputStream stream, AudioFormat format, long length)
Constructs an audio input stream that has the requested format and length in sample frames, using audio data from the specified input stream.
AudioInputStream(TargetDataLine line)
Constructs an audio input stream that reads its data from the target data line indicated.

Method

intavailable()
Returns the maximum number of bytes that can be read (or skipped over) from this audio input stream without blocking.
voidclose()
Closes this audio input stream and releases any system resources associated with the stream.
AudioFormatgetFormat()
Obtains the audio format of the sound data in this audio input stream.
longgetFrameLength()
Obtains the length of the stream, expressed in sample frames rather than bytes.
intread(byte[] b, int off, int len)
Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array.
intread(byte[] b)
Reads some number of bytes from the audio input stream and stores them into the buffer array b .
intread()
Reads the next byte of data from the audio input stream.
longskip(long n)
Skips over and discards a specified number of bytes from this audio input stream.