Package ipsk.audio.impl.j2audio
Class Playback
- java.lang.Object
-
- ipsk.audio.impl.j2audio.Playback
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.EventListener
,javax.sound.sampled.LineListener
public class Playback extends java.lang.Object implements java.lang.Runnable, javax.sound.sampled.LineListener
Deprecated.Please usePlayer
instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Playback.PlayerStatus
Deprecated.
-
Constructor Summary
Constructors Constructor Description Playback(PlaybackListener pbl, javax.sound.sampled.Mixer m)
Deprecated.Playback(PlaybackListener pbl, javax.sound.sampled.SourceDataLine line)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.javax.sound.sampled.AudioFormat
getAudioFormat()
Deprecated.long
getFrameLength()
Deprecated.long
getFramePosition()
Deprecated.float[]
getLevels()
Deprecated.long
getMicrosecondPosition()
Deprecated.long
getStartFramePosition()
Deprecated.long
getStopFramePosition()
Deprecated.boolean
isOpen()
Deprecated.boolean
isPlaying()
Deprecated.javax.sound.sampled.SourceDataLine
open(javax.sound.sampled.AudioFormat af)
Deprecated.boolean
pausePlayback()
Deprecated.void
play()
Deprecated.void
prepareToPlay(AudioSource src)
Deprecated.void
prepareToPlay(java.io.InputStream is)
Deprecated.void
run()
Deprecated.void
setFramePosition(long framePos)
Deprecated.long
setStartFramePosition(long startPosition)
Deprecated.long
setStopFramePosition(long stopPosition)
Deprecated.boolean
startPlayback()
Deprecated.void
stopPlayback()
Deprecated.void
update(javax.sound.sampled.LineEvent le)
Deprecated.
-
-
-
Constructor Detail
-
Playback
public Playback(PlaybackListener pbl, javax.sound.sampled.Mixer m)
Deprecated.
-
Playback
public Playback(PlaybackListener pbl, javax.sound.sampled.SourceDataLine line)
Deprecated.
-
-
Method Detail
-
open
public javax.sound.sampled.SourceDataLine open(javax.sound.sampled.AudioFormat af) throws AudioFormatNotSupportedException, javax.sound.sampled.LineUnavailableException
Deprecated.- Throws:
AudioFormatNotSupportedException
javax.sound.sampled.LineUnavailableException
-
isPlaying
public boolean isPlaying()
Deprecated.
-
prepareToPlay
public void prepareToPlay(AudioSource src) throws AudioSourceException, javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
Deprecated.- Throws:
AudioSourceException
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
-
prepareToPlay
public void prepareToPlay(java.io.InputStream is) throws AudioSourceException, javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
Deprecated.- Throws:
AudioSourceException
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
-
play
public void play()
Deprecated.
-
getLevels
public float[] getLevels()
Deprecated.
-
close
public void close()
Deprecated.
-
isOpen
public boolean isOpen()
Deprecated.
-
startPlayback
public boolean startPlayback()
Deprecated.
-
pausePlayback
public boolean pausePlayback()
Deprecated.
-
stopPlayback
public void stopPlayback()
Deprecated.
-
getFrameLength
public long getFrameLength()
Deprecated.
-
getFramePosition
public long getFramePosition()
Deprecated.
-
getMicrosecondPosition
public long getMicrosecondPosition()
Deprecated.
-
setFramePosition
public void setFramePosition(long framePos) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
setStartFramePosition
public long setStartFramePosition(long startPosition)
Deprecated.
-
setStopFramePosition
public long setStopFramePosition(long stopPosition)
Deprecated.
-
update
public void update(javax.sound.sampled.LineEvent le)
Deprecated.- Specified by:
update
in interfacejavax.sound.sampled.LineListener
-
run
public void run()
Deprecated.- Specified by:
run
in interfacejava.lang.Runnable
-
getAudioFormat
public javax.sound.sampled.AudioFormat getAudioFormat()
Deprecated.
-
getStartFramePosition
public long getStartFramePosition()
Deprecated.- Returns:
- frame position to start from
-
getStopFramePosition
public long getStopFramePosition()
Deprecated.- Returns:
- frame position to stop at
-
-