|
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.neomedia.control.AbstractControls
net.java.sip.communicator.impl.neomedia.control.ControlsAdapter
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.audio.PortAudioRenderer
public class PortAudioRenderer
Implements an audio Renderer which uses PortAudio.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
EMPTY_CONTROLS |
| Fields inherited from interface javax.media.PlugIn |
|---|
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
| Constructor Summary | |
|---|---|
PortAudioRenderer()
Initializes a new PortAudioRenderer instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this PlugIn. |
javax.media.MediaLocator |
getLocator()
Gets the MediaLocator which specifies the device index of the PortAudio device used by this instance for rendering. |
String |
getName()
Gets the descriptive/human-readable name of this JMF plug-in. |
javax.media.Format[] |
getSupportedInputFormats()
Gets the list of JMF Formats of audio data which this Renderer is capable of rendering. |
void |
open()
Opens the PortAudio device and output stream represented by this instance which are to be used to render audio. |
int |
process(javax.media.Buffer buffer)
Renders the audio data contained in a specific Buffer onto the PortAudio device represented by this Renderer. |
void |
reset()
Resets this PlugIn. |
static void |
setDefaultLocator(javax.media.MediaLocator defaultLocator)
Sets the MediaLocator which specifies the device index of the PortAudio device to be used by PortAudioRenderer instances which are to be opened later on and which don't have a specified MediaLocator at the time of opening. |
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the JMF Format of the audio data to be rendered by this Renderer. |
void |
setLocator(javax.media.MediaLocator locator)
Sets the MediaLocator which specifies the device index of the PortAudio device to be used by this instance for rendering. |
void |
start()
Starts the rendering process. |
void |
stop()
Stops the rendering process. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
getControls |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.AbstractControls |
|---|
getControl, getControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
public PortAudioRenderer()
| Method Detail |
|---|
public void close()
close in interface javax.media.PlugInpublic javax.media.MediaLocator getLocator()
public String getName()
getName in interface javax.media.PlugInpublic javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats in interface javax.media.Renderer
public void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInjavax.media.ResourceUnavailableException - if the PortAudio device or output
stream cannot be created or openedpublic int process(javax.media.Buffer buffer)
process in interface javax.media.Rendererbuffer - the Buffer which contains the audio data to be
rendered
public void reset()
reset in interface javax.media.PlugInpublic static void setDefaultLocator(javax.media.MediaLocator defaultLocator)
defaultLocator - the MediaLocator which specifies the
device index of the PortAudio device to be used by
PortAudioRenderer instances which are to be opened later on and
which don't have a specified MediaLocator at the time of openingpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.Rendererformat - the JMF Format of the audio data to be redered by
this instance
public void setLocator(javax.media.MediaLocator locator)
locator - a MediaLocator which specifies the device index
of the PortAudio device to be used by this instance for renderingpublic void start()
start in interface javax.media.Rendererpublic void stop()
stop in interface javax.media.Renderer
|
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 | |||||||||