Class 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
    • 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

      • getName

        public String getName()
      • open

        public void open()
                  throws javax.media.ResourceUnavailableException
        Specified by:
        open in interface javax.media.PlugIn
        Overrides:
        open in class AbstractAudioRenderer<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:
        playbackDevicePropertyChange in class AbstractAudioRenderer<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()