javazoom.jl.player

Class JavaSoundAudioDevice

public class JavaSoundAudioDevice extends AudioDeviceBase

The JavaSoundAudioDevice implements an audio device by using the JavaSound API.

Since: 0.0.8

Method Summary
protected voidcloseImpl()
protected voidcreateSource()
protected voidflushImpl()
protected AudioFormatgetAudioFormat()
protected byte[]getByteArray(int length)
intgetPosition()
protected InfogetSourceLineInfo()
intmillisecondsToBytes(AudioFormat fmt, int time)
voidopen(AudioFormat fmt)
protected voidopenImpl()
protected voidsetAudioFormat(AudioFormat fmt0)
voidtest()
Runs a short test by playing a short silent sound.
protected byte[]toByteArray(short[] samples, int offs, int len)
protected voidwriteImpl(short[] samples, int offs, int len)

Method Detail

closeImpl

protected void closeImpl()

createSource

protected void createSource()

flushImpl

protected void flushImpl()

getAudioFormat

protected AudioFormat getAudioFormat()

getByteArray

protected byte[] getByteArray(int length)

getPosition

public int getPosition()

getSourceLineInfo

protected Info getSourceLineInfo()

millisecondsToBytes

public int millisecondsToBytes(AudioFormat fmt, int time)

open

public void open(AudioFormat fmt)

openImpl

protected void openImpl()

setAudioFormat

protected void setAudioFormat(AudioFormat fmt0)

test

public void test()
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)
JavaZOOM 1999-2005