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

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

Introduction

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

The text is from its open source code.

Method

voidaddLineListener(LineListener listener)
Adds a listener to this line.
intgetBufferSize()
Obtains the maximum number of bytes of data that will fit in the data line's internal buffer.
AudioFormatgetFormat()
Obtains the current format (encoding, sample rate, number of channels, etc.) of the data line's audio data.
Line.InfogetLineInfo()
Obtains the Line.Info object describing this line.
voidopen(AudioFormat format)
Opens the line with the specified format, causing the line to acquire any required system resources and become operational.
voidopen(AudioFormat format, int bufferSize)
Opens the line with the specified format and requested buffer size, causing the line to acquire any required system resources and become operational.
intread(byte[] b, int off, int len)
Reads audio data from the data line's input buffer.
voidstart()
Allows a line to engage in data I/O.