|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.util.audio.AudioUtils
public class AudioUtils
Class that provide a wide set of methods to send and receive audio through a channel
Constructor Summary | |
---|---|
AudioUtils()
|
Method Summary | |
---|---|
static javax.sound.sampled.AudioFormat |
getFormat()
Returns the format of the retransmitted audio |
static javax.sound.sampled.SourceDataLine |
initAudioLine()
Method used to setup the audio line |
static boolean |
isCapturing()
Returns if the sender thread is capturing audio or not |
static void |
playSoundData(byte[] soundData)
Reproduces the audio formed by an array of data received |
static void |
startAudioCapture(MChannel groupChannel,
java.lang.String channelID,
java.lang.String destAddr)
Runs the sound sender thread. |
static void |
stopAudioCapture()
Stops the sender audio thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioUtils()
Method Detail |
---|
public static javax.sound.sampled.AudioFormat getFormat()
public static javax.sound.sampled.SourceDataLine initAudioLine()
public static boolean isCapturing()
public static void playSoundData(byte[] soundData)
public static void startAudioCapture(MChannel groupChannel, java.lang.String channelID, java.lang.String destAddr)
groupChannel
- channelID
- destAddr
- public static void stopAudioCapture()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |