|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AudioInterface
The abstract audio interface.
Nested Class Summary | |
---|---|
static interface |
AudioInterface.Packetizer
Audio sender interface used by instance of the AudioInterface class to send captured audio samples to the remote peer. |
Method Summary | |
---|---|
void |
cleanUp()
Cleans up resources used by the interface. |
AudioInterface |
getByFormat(java.lang.Integer format)
Creates new instance of the interface by choosing specified CODEC format |
int |
getSampleSize()
Returns the minimum sample size for use in creating buffers etc. |
int |
getVoicePduSubclass()
Gets the VoicePDU subclass attribute of the AbstractAudio object |
long |
readWithTimestamp(byte[] buff)
Reads from the microphone, using the buffer provided, but only filling getSampSize() bytes. |
void |
setAudioSender(AudioInterface.Packetizer as)
Sets the audioSender attribute of the AbstractAudio object |
void |
startPlay()
Starts the player |
long |
startRecording()
Starts the recorder (returning the time-stamp) |
void |
startRinging()
Starts ringing signal |
void |
stopPlay()
Stops the player |
void |
stopRecording()
Stops the recorder - but don't throw it away. |
void |
stopRinging()
Stops ringing signal |
void |
writeBuffered(byte[] buff,
long timestamp)
Plays the sample given (AudioInterface.getSampleSize() bytes) assuming that it's timestamp is long |
void |
writeDirectly(byte[] buff)
Writes directly to source line without buffering |
Method Detail |
---|
int getSampleSize()
long readWithTimestamp(byte[] buff) throws java.io.IOException
java.io.IOException
void stopRecording()
long startRecording()
void startPlay()
void stopPlay()
void startRinging()
void stopRinging()
void writeBuffered(byte[] buff, long timestamp) throws java.io.IOException
java.io.IOException
void writeDirectly(byte[] buff) throws java.io.IOException
java.io.IOException
int getVoicePduSubclass()
void setAudioSender(AudioInterface.Packetizer as)
void cleanUp()
AudioInterface getByFormat(java.lang.Integer format)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |