|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AudioClient
This class is the native interface for AudioClient.
Constructor Summary | |
AudioClient(int outputDevice)
Constructor for a new AudioClient. |
Method Summary | |
void |
change(java.lang.String mediaName)
Change media of an established connection. |
void |
doFinalization()
Do garbage collection: Delete AudioClient and AudioDevice. |
void |
finalize()
Do garbage collection. |
int |
getBandwidthLimit()
Get bandwidth limit. |
int |
getBits()
Get number of audio bits |
int |
getBitsPerSample()
Get bits per sample. |
int |
getByteOrder()
Get audio byte order. |
int |
getBytesPerSecond()
Get audio bytes per second. |
long |
getBytesReceived(int layer)
Get number of bytes received |
int |
getChannels()
Get number of audio channels. |
java.lang.String |
getEncoding()
Get encoding name. |
java.lang.String |
getEncodingName(int index)
Get encoding name for a given index of the client's decoder repository. |
int |
getErrorCode()
Get error code. |
int |
getFlowLabel(int layer)
Get flow label of last received packet in given layer. |
double |
getFractionLost(int layer)
Get fraction of packets lost in given layer. |
int |
getIPVersion()
Get IP version. |
double |
getJitter(int layer)
Get jitter in given layer. |
int |
getLayers()
Get number of layers in last transmission. |
long |
getMaxPosition()
Get maximum media position. |
void |
getMediaInfo(MediaInfo mediaInfo)
Get MediaInfo. |
java.lang.String |
getNameForTrafficClass(int trafficClass)
Get name for traffic class. |
java.lang.String |
getOurAddressString()
Get client address string. |
int |
getOurSSRC()
Get client SSRC. |
long |
getPacketsLost(int layer)
Get number of packets lost in given layer. |
long |
getPacketsReceived(int layer)
Get number of packets received |
long |
getPosition()
Get current media position. |
int |
getRawBytesPerSecond()
Get number of raw bytes (incl. |
int |
getSamplingRate()
Get audio sampling rate. |
java.lang.String |
getServerAddressString()
Get server address string. |
int |
getServerSSRC(int layer)
Get server SSRC in given layer. |
int |
getTrafficClass(int layer)
Get traffic class of last received packet in given layer. |
void |
getTransportInfo(TransportInfo transportInfo)
Get TransportInfo for current setting. |
int |
getValidBits(int index)
Get entry from table of valid audio bits. |
int |
getValidSamplingRate(int index)
Get entry from table of valid sampling rates. |
static void |
killJavaInterpreter()
Kill Java interpreter by sending SIGINT and SIGKILL to current process. |
boolean |
play(java.lang.String server,
java.lang.String mediaName)
Start playing given media from given server. |
boolean |
playing()
Check, if audio client is playing. |
void |
setBandwidthLimit(int bandwidthLimit)
Set bandwidth limit. |
void |
setBits(int bits)
Set number of audio bits. |
void |
setChannels(int channels)
Set number of audio channels |
void |
setEncoding(int index)
Set encoding by index in client's decoder repository. |
void |
setPause(boolean on)
Set pause. |
void |
setPosition(long position)
Set media position. |
void |
setSamplingRate(int rate)
Set audio sampling rate. |
void |
stop()
Stop playing. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AudioClient(int outputDevice) throws java.lang.OutOfMemoryError
outputDevice
- 0 for AudioDevice, 1000 for AudioDebug, -1 for AudioNull.Method Detail |
public void doFinalization()
public void finalize()
finalize
in class java.lang.Object
public static void killJavaInterpreter()
public boolean play(java.lang.String server, java.lang.String mediaName)
server
- Server address (e.g. gaffel:7500).mediaName
- Media name (e.g. ../AudioFiles/Test1.list)public void change(java.lang.String mediaName)
mediaName
- New media name (e.g. ../AudioFiles/Test2.list)play(java.lang.String, java.lang.String)
public void stop()
public long getPosition()
public long getMaxPosition()
public int getSamplingRate()
public int getChannels()
public int getBits()
public int getBytesPerSecond()
public int getBitsPerSample()
public int getByteOrder()
public int getRawBytesPerSecond()
public long getBytesReceived(int layer)
layer
- Layer number or -1 for sum of all layers.public long getPacketsReceived(int layer)
layer
- Layer number or -1 for sum of all layers.public void getTransportInfo(TransportInfo transportInfo)
transportInfo
- TransportInfo.public void getMediaInfo(MediaInfo mediaInfo)
mediaInfo
- MediaInfo.public int getErrorCode()
public int getIPVersion()
public java.lang.String getEncoding()
public int getBandwidthLimit()
public java.lang.String getEncodingName(int index)
index
- Repository index.public int getValidSamplingRate(int index)
index
- Table index.public int getValidBits(int index)
index
- Table index.public boolean playing()
public java.lang.String getServerAddressString()
public java.lang.String getOurAddressString()
public int getFlowLabel(int layer)
layer
- Layer number.public int getTrafficClass(int layer)
layer
- Layer number.public java.lang.String getNameForTrafficClass(int trafficClass)
trafficClass
- Traffic class.public int getLayers()
public int getServerSSRC(int layer)
layer
- Layer number.public int getOurSSRC()
public long getPacketsLost(int layer)
layer
- Layer number.public double getFractionLost(int layer)
layer
- Layer number.public double getJitter(int layer)
layer
- Layer number.public void setPosition(long position)
position
- New media position in milliseconds.public void setPause(boolean on)
on
- true for pause on; false for pause off.public void setSamplingRate(int rate)
rate
- New audio sampling rate.public void setChannels(int channels)
channels
- New number of audio channels.public void setBits(int bits)
bits
- New number of audio bits.public void setEncoding(int index)
index
- Index in decoder repository.public void setBandwidthLimit(int bandwidthLimit)
bandwidthLimit
- Bandwidth limit.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |