|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.protocol.portaudio.streams.OutputPortAudioStream
public class OutputPortAudioStream
The output stream that opens and writes to the PortAudio stream.
| Constructor Summary | |
|---|---|
OutputPortAudioStream(int deviceIndex,
double sampleRate,
int channels)
Creates output stream. |
|
OutputPortAudioStream(int deviceIndex,
double sampleRate,
int channels,
long sampleFormat)
Creates output stream. |
|
| Method Summary | |
|---|---|
int |
getDeviceIndex()
The index of the device that we use. |
long |
getStream()
The pointer of the PortAudio stream. |
void |
start()
Starts the stream operation |
void |
stop()
Stops the stream operation. |
void |
write(byte[] buffer)
We will split everything into parts of PortAudioManager.NUM_SAMPLES. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputPortAudioStream(int deviceIndex,
double sampleRate,
int channels)
throws PortAudioException
deviceIndex - the index of the device to use.sampleRate - the samepl rate.channels - the channels to serve.
PortAudioException - if stream fails to open.
public OutputPortAudioStream(int deviceIndex,
double sampleRate,
int channels,
long sampleFormat)
throws PortAudioException
deviceIndex - the index of the device to use.sampleRate - the samepl rate.channels - the channels to serve.sampleFormat - the sample format to use.
PortAudioException - if stream fails to open.| Method Detail |
|---|
public void write(byte[] buffer)
throws PortAudioException
buffer - the current buffer.
PortAudioException - error while writing to device.
public void start()
throws PortAudioException
PortAudioException
public void stop()
throws PortAudioException
PortAudioExceptionpublic int getDeviceIndex()
public long getStream()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||