Class PortAudioSystem


  • public class PortAudioSystem
    extends AudioSystem2
    Creates PortAudio capture devices by enumerating all host devices that have input channels.
    Author:
    Damian Minkov, Lyubomir Marinov
    • Method Detail

      • doInitialize

        protected void doInitialize()
                             throws Exception
        Invoked by DeviceSystem.initialize() to perform the very logic of the initialization of this DeviceSystem. This instance has been prepared for initialization by an earlier call to DeviceSystem.preInitialize() and the initialization will be completed with a subsequent call to DeviceSystem.postInitialize().
        Specified by:
        doInitialize in class DeviceSystem
        Throws:
        Exception - if an error occurs during the initialization of this instance. The initialization of this instance will be completed with a subsequent call to postInitialize() regardless of any Exception thrown by doInitialize().
      • getRendererClassName

        protected String getRendererClassName()
        Gets the name of the class which implements the Renderer interface to render media on a playback or notification device associated with this DeviceSystem.
        Overrides:
        getRendererClassName in class DeviceSystem
        Returns:
        the name of the class which implements the Renderer interface to render media on a playback or notification device associated with this DeviceSystem or null if no Renderer instance is to be created by the DeviceSystem implementation or createRenderer(boolean) is overridden.
      • toString

        public String toString()
        Returns a human-readable representation of this DeviceSystem. The implementation of DeviceSystem returns the protocol of the MediaLocators of the CaptureDeviceInfos (to be) registered by this DeviceSystem. The implementation of PortAudioSystem always returns "PortAudio".
        Overrides:
        toString in class DeviceSystem
        Returns:
        a String which represents this DeviceSystem in a human-readable form