Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

javazoom::jl::player::JavaSoundAudioDevice Class Reference

Inheritance diagram for javazoom::jl::player::JavaSoundAudioDevice:

javazoom::jl::player::AudioDeviceBase javazoom::jl::player::AudioDevice

List of all members.


Detailed Description

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

Since:
0.0.8
Author:
Mat McGowan

Definition at line 44 of file JavaSoundAudioDevice.java.


Public Member Functions

synchronized void close ()
void flush ()
int getPosition ()
synchronized boolean isOpen ()
int millisecondsToBytes (AudioFormat fmt, int time)
synchronized void open (Decoder decoder) throws JavaLayerException
void open (AudioFormat fmt) throws JavaLayerException
void test () throws JavaLayerException
void write (short[] samples, int offs, int len) throws JavaLayerException

Protected Member Functions

void closeImpl ()
void createSource () throws JavaLayerException
void flushImpl ()
AudioFormat getAudioFormat ()
byte[] getByteArray (int length)
Decoder getDecoder ()
DataLine.Info getSourceLineInfo ()
void openImpl () throws JavaLayerException
void setAudioFormat (AudioFormat fmt0)
void setOpen (boolean open)
byte[] toByteArray (short[] samples, int offs, int len)
void writeImpl (short[] samples, int offs, int len) throws JavaLayerException

Private Attributes

byte[] byteBuf = new byte[4096]
AudioFormat fmt = null
SourceDataLine source = null

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index