Known Direct Subclasses
|
Class Overview
General software mixing line.
Summary
Nested Classes |
class |
SoftMixingDataLine.AudioFloatInputStreamResampler |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
javax.sound.sampled.DataLine
abstract
int
|
available()
Obtains the number of bytes of data currently available to the
application for processing in the data line's internal buffer.
|
abstract
void
|
drain()
Drains queued data from the line by continuing data I/O until the
data line's internal buffer has been emptied.
|
abstract
void
|
flush()
Flushes queued data from the line.
|
abstract
int
|
getBufferSize()
Obtains the maximum number of bytes of data that will fit in the data line's
internal buffer.
|
abstract
AudioFormat
|
getFormat()
Obtains the current format (encoding, sample rate, number of channels,
etc.) of the data line's audio data.
|
abstract
int
|
getFramePosition()
Obtains the current position in the audio data, in sample frames.
|
abstract
float
|
getLevel()
Obtains the current volume level for the line.
|
abstract
long
|
getLongFramePosition()
Obtains the current position in the audio data, in sample frames.
|
abstract
long
|
getMicrosecondPosition()
Obtains the current position in the audio data, in microseconds.
|
abstract
boolean
|
isActive()
Indicates whether the line is engaging in active I/O (such as playback
or capture).
|
abstract
boolean
|
isRunning()
Indicates whether the line is running.
|
abstract
void
|
start()
Allows a line to engage in data I/O.
|
abstract
void
|
stop()
Stops the line.
|
|
From interface
javax.sound.sampled.Line
abstract
void
|
addLineListener(LineListener listener)
Adds a listener to this line.
|
abstract
void
|
close()
Closes the line, indicating that any system resources
in use by the line can be released.
|
abstract
Control
|
getControl(Control.Type control)
Obtains a control of the specified type,
if there is any.
|
abstract
Control[]
|
getControls()
Obtains the set of controls associated with this line.
|
abstract
Line.Info
|
getLineInfo()
Obtains the Line.Info object describing this
line.
|
abstract
boolean
|
isControlSupported(Control.Type control)
Indicates whether the line supports a control of the specified type.
|
abstract
boolean
|
isOpen()
Indicates whether the line is open, meaning that it has reserved
system resources and is operational, although it might not currently be
playing or capturing sound.
|
abstract
void
|
open()
Opens the line, indicating that it should acquire any required
system resources and become operational.
|
abstract
void
|
removeLineListener(LineListener listener)
Removes the specified listener from this line's list of listeners.
|
|
Fields
protected
Object
control_mutex
protected
float
rightgain
Protected Constructors
Public Methods
public
void
addLineListener
(LineListener listener)
Adds a listener to this line. Whenever the line's status changes, the
listener's update()
method is called with a LineEvent
object
that describes the change.
Parameters
listener
| the object to add as a listener to this line |
Obtains a control of the specified type,
if there is any.
Some controls may only be available when the line is open.
Parameters
control
| the type of the requested control |
Returns
- a control of the specified type
public
Control[]
getControls
()
Obtains the set of controls associated with this line.
Some controls may only be available when the line is open.
If there are no controls, this method returns an array of length 0.
public
Line.Info
getLineInfo
()
Obtains the Line.Info
object describing this
line.
public
boolean
isControlSupported
(Control.Type control)
Indicates whether the line supports a control of the specified type.
Some controls may only be available when the line is open.
Parameters
control
| the type of the control for which support is queried |
Returns
true
if at least one control of the specified type is
supported, otherwise false
.
public
void
removeLineListener
(LineListener listener)
Removes the specified listener from this line's list of listeners.
Parameters
listener
| listener to remove |
Protected Methods
protected
void
calcVolume
()
protected
abstract
void
processControlLogic
()