< prev index next >
src/java.desktop/share/classes/javax/sound/sampled/LineEvent.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -98,22 +98,20 @@
* Obtains the audio line that is the source of this event.
*
* @return the line responsible for this event
*/
public final Line getLine() {
-
return (Line)getSource();
}
/**
* Obtains the event's type.
*
* @return this event's type ({@link Type#OPEN}, {@link Type#CLOSE},
* {@link Type#START}, or {@link Type#STOP})
*/
public final Type getType() {
-
return type;
}
/**
* Obtains the position in the line's audio data when the event occurred,
@@ -135,11 +133,10 @@
* $$kk: 04.20.99: note to myself: should make sure our implementation is
* consistent with this.
* which is a reasonable definition....
*/
public final long getFramePosition() {
-
return position;
}
/**
* Obtains a string representation of the event. The contents of the string
< prev index next >