Class PulseAudioRenderer
- java.lang.Object
-
- org.jitsi.impl.neomedia.control.AbstractControls
-
- org.jitsi.impl.neomedia.control.ControlsAdapter
-
- org.jitsi.impl.neomedia.jmfext.media.renderer.AbstractRenderer<javax.media.format.AudioFormat>
-
- org.jitsi.impl.neomedia.jmfext.media.renderer.audio.AbstractAudioRenderer<PulseAudioSystem>
-
- org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer
-
- All Implemented Interfaces:
javax.media.Controls,javax.media.PlugIn,javax.media.Renderer
public class PulseAudioRenderer extends AbstractAudioRenderer<PulseAudioSystem>
Implements an audio Renderer which uses PulseAudio.- Author:
- Lyubomir Marinov
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.jmfext.media.renderer.audio.AbstractAudioRenderer
audioSystem, dataFlow, JAVA_AUDIO_FORMAT_ENDIAN, NATIVE_AUDIO_FORMAT_ENDIAN
-
Fields inherited from class org.jitsi.impl.neomedia.jmfext.media.renderer.AbstractRenderer
inputFormat
-
Fields inherited from class org.jitsi.impl.neomedia.control.ControlsAdapter
EMPTY_CONTROLS
-
-
Constructor Summary
Constructors Constructor Description PulseAudioRenderer()Initializes a new PulseAudioRenderer instance with a default PulseAudio media role.PulseAudioRenderer(String mediaRole)Initializes a new PulseAudioRenderer instance with a specific PulseAudio media role.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetName()javax.media.Format[]getSupportedInputFormats()voidopen()protected voidplaybackDevicePropertyChange(PropertyChangeEvent ev)Notifies this instance that the value of the PROP_PLAYBACK_DEVICE property of its associated AudioSystem has changed.intprocess(javax.media.Buffer buffer)voidstart()voidstop()-
Methods inherited from class org.jitsi.impl.neomedia.jmfext.media.renderer.audio.AbstractAudioRenderer
getControls, getGainControl, getLocator, setLocator, setVolumeControl, useAudioThreadPriority
-
Methods inherited from class org.jitsi.impl.neomedia.jmfext.media.renderer.AbstractRenderer
reset, setInputFormat, useThreadPriority
-
Methods inherited from class org.jitsi.impl.neomedia.control.AbstractControls
getControl, getControl, queryInterface, queryInterface
-
-
-
-
Constructor Detail
-
PulseAudioRenderer
public PulseAudioRenderer()
Initializes a new PulseAudioRenderer instance with a default PulseAudio media role.
-
PulseAudioRenderer
public PulseAudioRenderer(String mediaRole)
Initializes a new PulseAudioRenderer instance with a specific PulseAudio media role.- Parameters:
mediaRole- the PulseAudio media role to initialize the new instance with
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejavax.media.PlugIn- Overrides:
closein classAbstractAudioRenderer<PulseAudioSystem>
-
getName
public String getName()
-
getSupportedInputFormats
public javax.media.Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormatsin interfacejavax.media.Renderer- Overrides:
getSupportedInputFormatsin classAbstractAudioRenderer<PulseAudioSystem>
-
open
public void open() throws javax.media.ResourceUnavailableException- Specified by:
openin interfacejavax.media.PlugIn- Overrides:
openin classAbstractAudioRenderer<PulseAudioSystem>- Throws:
javax.media.ResourceUnavailableException
-
playbackDevicePropertyChange
protected void playbackDevicePropertyChange(PropertyChangeEvent ev)
Notifies this instance that the value of the PROP_PLAYBACK_DEVICE property of its associated AudioSystem has changed.- Overrides:
playbackDevicePropertyChangein classAbstractAudioRenderer<PulseAudioSystem>- Parameters:
ev- a PropertyChangeEvent which specifies details about the change such as the name of the property and its old and new values
-
process
public int process(javax.media.Buffer buffer)
-
start
public void start()
-
stop
public void stop()
-
-