Package javazoom.jlgui.basicplayer
Interface BasicController
-
- All Known Implementing Classes:
BasicPlayer
public interface BasicControllerThis interface defines player controls available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidopen(java.io.File file)Open file to play.voidopen(java.io.InputStream in)Open inputstream to play.voidopen(java.net.URL url)Open URL to play.voidpause()Pause playback.voidplay()Start playback.voidresume()Resume playback.longseek(long bytes)Skip bytes.voidsetGain(double gain)Sets Gain value.voidsetPan(double pan)Sets Pan (Balance) value.voidstop()Stop playback.
-
-
-
Method Detail
-
open
void open(java.io.InputStream in) throws BasicPlayerException
Open inputstream to play.- Parameters:
in-- Throws:
BasicPlayerException
-
open
void open(java.io.File file) throws BasicPlayerException
Open file to play.- Parameters:
file-- Throws:
BasicPlayerException
-
open
void open(java.net.URL url) throws BasicPlayerException
Open URL to play.- Parameters:
url-- Throws:
BasicPlayerException
-
seek
long seek(long bytes) throws BasicPlayerException
Skip bytes.- Parameters:
bytes-- Returns:
- bytes skipped according to audio frames constraint.
- Throws:
BasicPlayerException
-
play
void play() throws BasicPlayerException
Start playback.- Throws:
BasicPlayerException
-
stop
void stop() throws BasicPlayerException
Stop playback.- Throws:
BasicPlayerException
-
pause
void pause() throws BasicPlayerExceptionPause playback.- Throws:
BasicPlayerException
-
resume
void resume() throws BasicPlayerExceptionResume playback.- Throws:
BasicPlayerException
-
setPan
void setPan(double pan) throws BasicPlayerExceptionSets Pan (Balance) value. Linear scale : -1.0 <--> +1.0- Parameters:
pan- value from -1.0 to +1.0- Throws:
BasicPlayerException
-
setGain
void setGain(double gain) throws BasicPlayerExceptionSets Gain value. Linear scale 0.0 <--> 1.0- Parameters:
gain- value from 0.0 to 1.0- Throws:
BasicPlayerException
-
-