The LineEvent class encapsulates information that a line sends its listeners
whenever the line opens, closes, starts, or stops. Each of these four state changes
is represented by a corresponding type of event. A listener receives the event as a parameter to its
its update method. By querying the event, the listener can learn
the type of event, the line responsible for the event, and how much data the line had processed
when the event occurred.
Obtains the position in the line's audio data when the event occurred, expressed in sample frames.
For example, if a source line had already played back 14 sample frames at the time it was
paused, the pause event would report the line's position as 14. The next frame to be processed
would be frame number 14 using zero-based numbering, or 15 using one-based numbering.
Note that this field is relevant only to certain events generated by
data lines, such as START and STOP. For
events generated by lines that do not count sample frames, and for any
other events for which this value is not known, the position value
should be AudioSystem.NOT_SPECIFIED.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.