public class PulseAudioRenderer extends AbstractAudioRenderer<PulseAudioSystem>
audioSystem, dataFlow, JAVA_AUDIO_FORMAT_ENDIAN, NATIVE_AUDIO_FORMAT_ENDIAN
inputFormat
EMPTY_CONTROLS
Constructor and Description |
---|
PulseAudioRenderer()
Initializes a new PulseAudioRenderer instance with a default
PulseAudio media role.
|
PulseAudioRenderer(java.lang.String mediaRole)
Initializes a new PulseAudioRenderer instance with a specific
PulseAudio media role.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getName() |
javax.media.Format[] |
getSupportedInputFormats() |
void |
open() |
protected void |
playbackDevicePropertyChange(java.beans.PropertyChangeEvent ev)
Notifies this instance that the value of the
AudioSystem#PROP_PLAYBACK_DEVICE property of its associated
AudioSystem has changed. |
int |
process(javax.media.Buffer buffer) |
void |
start() |
void |
stop() |
getControls, getGainControl, getLocator, setLocator, setVolumeControl, useAudioThreadPriority
reset, setInputFormat, useThreadPriority
getControl, getControl, queryInterface, queryInterface
public PulseAudioRenderer()
public PulseAudioRenderer(java.lang.String mediaRole)
mediaRole
- the PulseAudio media role to initialize the new instance
withpublic void close()
close
in interface javax.media.PlugIn
close
in class AbstractAudioRenderer<PulseAudioSystem>
public java.lang.String getName()
public javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats
in interface javax.media.Renderer
getSupportedInputFormats
in class AbstractAudioRenderer<PulseAudioSystem>
public void open() throws javax.media.ResourceUnavailableException
open
in interface javax.media.PlugIn
open
in class AbstractAudioRenderer<PulseAudioSystem>
javax.media.ResourceUnavailableException
protected void playbackDevicePropertyChange(java.beans.PropertyChangeEvent ev)
AudioSystem#PROP_PLAYBACK_DEVICE
property of its associated
AudioSystem has changed.playbackDevicePropertyChange
in class AbstractAudioRenderer<PulseAudioSystem>
ev
- a PropertyChangeEvent which specifies details about
the change such as the name of the property and its old and new valuespublic int process(javax.media.Buffer buffer)
public void start()
public void stop()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.