Package com.jackmeng.tailwind
Class use_Tailwind
java.lang.Object
com.jackmeng.tailwind.use_Tailwind
- All Implemented Interfaces:
impl_Identifiable
,impl_Tailwind
,Serializable
,Cloneable
public class use_Tailwind
extends Object
implements impl_Identifiable, impl_Tailwind, Cloneable, Serializable
This is the main class that represents a Tailwind Player that
is not natively implement
- Author:
- Jack Meng
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate AudioFormat
private AudioInputStream
private use_Tailwind.tailwind_Status
private int
private use_TailwindTrack
private final AtomicBoolean
private boolean
private boolean
private long
private long
private SourceDataLine
private List<evnt_TailwindStatus>
private long
-
Constructor Summary
ConstructorDescriptionuse_Tailwind
(use_TailwindTrack e, impl_ForYou<use_Struct.struct_Pair<use_Tailwind.tailwind_Status, Exception>> errorCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
final void
close()
final long
final void
fade_in
(long fade_duration) final void
fade_out
(long fade_duration) final void
gain_percent
(float percent) static AudioInputStream
get_audio_inputstream
(URL locale) private void
final void
void
void
final void
pause()
final void
play()
final void
resume()
void
private void
final void
seekFrom
(long milliseconds) final void
seekTo
(long milliseconds) state()
final void
stop()
final long
time_ms()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jackmeng.core.abst.impl_Identifiable
id
-
Field Details
-
statusListener
-
error_callback
private transient impl_ForYou<use_Struct.struct_Pair<use_Tailwind.tailwind_Status,Exception>> error_callback -
currentTrack
-
ais
-
af
-
sourceLine
-
compareStatus
-
isPlaying
private volatile boolean isPlaying -
isPaused
private volatile boolean isPaused -
isClosed
-
pauseTime
private volatile long pauseTime -
resumeTime
private volatile long resumeTime -
totalPausedTime
private volatile long totalPausedTime -
currentFrame
private volatile int currentFrame
-
-
Constructor Details
-
use_Tailwind
public use_Tailwind(use_TailwindTrack e, impl_ForYou<use_Struct.struct_Pair<use_Tailwind.tailwind_Status, Exception>> errorCallback) -
use_Tailwind
-
use_Tailwind
public use_Tailwind() -
use_Tailwind
-
-
Method Details
-
run_ping
-
current_track
-
add_status_listener
-
rm_status_listener
-
open
-
open
-
calculate_status
-
get_audio_inputstream
-
open
-
play
public final void play()- Specified by:
play
in interfaceimpl_Tailwind
-
masta_drainage
private void masta_drainage() -
resume
public final void resume() -
pause
public final void pause()- Specified by:
pause
in interfaceimpl_Tailwind
-
stop
public final void stop()- Specified by:
stop
in interfaceimpl_Tailwind
-
close
public final void close()- Specified by:
close
in interfaceimpl_Tailwind
-
seekTo
public final void seekTo(long milliseconds) -
seekFrom
public final void seekFrom(long milliseconds) -
time_ms
public final long time_ms()- Specified by:
time_ms
in interfaceimpl_Tailwind
-
current_pos_ms
public final long current_pos_ms() -
fade_in
public final void fade_in(long fade_duration) -
fade_out
public final void fade_out(long fade_duration) -
gain_percent
public final void gain_percent(float percent) -
state
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-