javazoom.jl.player
Class JavaSoundAudioDevice
- AudioDevice
public class JavaSoundAudioDevice
The JavaSoundAudioDevice
implements an audio
device by using the JavaSound API.
protected void | closeImpl() - Template method to provide the implementation for
closing the audio device.
|
protected void | createSource()
|
protected void | flushImpl() - Template method to provide the implementation for
flushing any buffered audio data.
|
protected AudioFormat | getAudioFormat()
|
protected byte[] | getByteArray(int length)
|
int | getPosition()
|
protected DataLine.Info | getSourceLineInfo()
|
int | millisecondsToBytes(AudioFormat fmt, int time)
|
void | open(AudioFormat fmt)
|
protected void | openImpl() - Template method to provide the
implementation for the opening of the audio device.
|
protected void | setAudioFormat(AudioFormat fmt0)
|
void | test() - Runs a short test by playing a short silent sound.
|
protected byte[] | toByteArray(short[] samples, int offs, int len)
|
protected void | writeImpl(short[] samples, int offs, int len) - Template method to provide the implementation for
writing audio samples to the audio device.
|
close , closeImpl , flush , flushImpl , getDecoder , isOpen , open , openImpl , setOpen , write , writeImpl |
closeImpl
protected void closeImpl()
Template method to provide the implementation for
closing the audio device.
- closeImpl in interface AudioDeviceBase
flushImpl
protected void flushImpl()
Template method to provide the implementation for
flushing any buffered audio data.
- flushImpl in interface AudioDeviceBase
getAudioFormat
protected AudioFormat getAudioFormat()
getByteArray
protected byte[] getByteArray(int length)
getSourceLineInfo
protected DataLine.Info getSourceLineInfo()
millisecondsToBytes
public int millisecondsToBytes(AudioFormat fmt,
int time)
setAudioFormat
protected void setAudioFormat(AudioFormat fmt0)
test
public void test()
throws JavaLayerException
Runs a short test by playing a short silent sound.
toByteArray
protected byte[] toByteArray(short[] samples,
int offs,
int len)
writeImpl
protected void writeImpl(short[] samples,
int offs,
int len)
throws JavaLayerException
Template method to provide the implementation for
writing audio samples to the audio device.
- writeImpl in interface AudioDeviceBase
JavaZOOM 1999-2005