Example usage for Java javax.sound.sampled AudioInputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
int | available() Returns the maximum number of bytes that can be read (or skipped over) from this audio input stream without blocking. |
void | close() Closes this audio input stream and releases any system resources associated with the stream. |
AudioFormat | getFormat() Obtains the audio format of the sound data in this audio input stream. |
long | getFrameLength() Obtains the length of the stream, expressed in sample frames rather than bytes. |
int | read(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. |
int | read(byte[] b) Reads some number of bytes from the audio input stream and stores them into the buffer array b . |
int | read() Reads the next byte of data from the audio input stream. |
long | skip(long n) Skips over and discards a specified number of bytes from this audio input stream. |