public class AliveURL.Playback extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
(package private) AudioInputStream |
audioInputStream |
(package private) static int |
BUFFER_SIZE |
(package private) File |
fileToPlay |
(package private) SourceDataLine |
line |
(package private) Thread |
thread |
(package private) URL |
urlToPlay |
Constructor and Description |
---|
Playback(File f)
Constructor for the Playback object
|
Playback(URL url)
Constructor for the Playback object
|
Modifier and Type | Method and Description |
---|---|
void |
createAudioInputStream(File file)
Description of the Method
|
void |
createAudioInputStream(URL url)
Description of the Method
|
private void |
reportStatus(String msg)
Description of the Method
|
void |
run()
Main processing method for the Playback object
|
private void |
shutDown(String message)
Description of the Method
|
void |
start()
Description of the Method
|
void |
stop()
Description of the Method
|
static final int BUFFER_SIZE
SourceDataLine line
File fileToPlay
AudioInputStream audioInputStream
public Playback(URL url)
url
- Description of the Parameterprivate void reportStatus(String msg)
msg
- Description of the Parameterpublic void createAudioInputStream(File file)
file
- Description of the Parameterpublic void createAudioInputStream(URL url)
url
- Description of the Parameterpublic void start()
public void stop()
private void shutDown(String message)
message
- Description of the ParameterWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses