|
Jitsi: 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.AbstractRenderer<javax.media.format.AudioFormat>
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.jmfext.media.renderer.AbstractRenderer |
|---|
inputFormat |
| 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. |
|
PortAudioRenderer(boolean enableVolumeControl)
Initializes a new PortAudioRenderer instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this PlugIn. |
Object[] |
getControls()
Implements Controls.getControls(). |
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. |
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. |
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.jmfext.media.renderer.AbstractRenderer |
|---|
reset, setInputFormat |
| 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 |
| Constructor Detail |
|---|
public PortAudioRenderer()
public PortAudioRenderer(boolean enableVolumeControl)
enableVolumeControl - true to enable volume control;
false, otherwise| Method Detail |
|---|
public void close()
public Object[] getControls()
Controls.getControls(). Gets the controls
available for the owner of this instance. The current implementation
returns an empty array because it has no available controls.
getControls in interface javax.media.ControlsgetControls in class ControlsAdapterpublic javax.media.MediaLocator getLocator()
public String getName()
public javax.media.Format[] getSupportedInputFormats()
public void open()
throws javax.media.ResourceUnavailableException
javax.media.ResourceUnavailableException - if the PortAudio device or output
stream cannot be created or openedpublic int process(javax.media.Buffer buffer)
buffer - the Buffer which contains the audio data to be
rendered
public 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 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()
public void stop()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||