Class NullAudioFactory

  • All Implemented Interfaces:
    AudioFactory

    public class NullAudioFactory
    extends AbstractAudioFactory
    This is the null audio system specific AudioFactory. It is a dummy factory which provides the necessary object generation but does not produce any sound. This will normally only be used when running on a system that has no sound-card installed.
    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isInitialised

        public boolean isInitialised()
        Description copied from interface: AudioFactory
        Determine if this AudioFactory is initialised
        Returns:
        true if initialised
      • createNewBuffer

        public AudioBuffer createNewBuffer​(java.lang.String systemName,
                                           java.lang.String userName)
        Description copied from interface: AudioFactory
        Provide a specific new AudioBuffer object.
        Parameters:
        systemName - for this object instance
        userName - for this object instance
        Returns:
        a new specific AudioBuffer
      • createNewListener

        public AudioListener createNewListener​(java.lang.String systemName,
                                               java.lang.String userName)
        Description copied from interface: AudioFactory
        Provide a specific new AudioListener object.
        Parameters:
        systemName - for this object instance
        userName - for this object instance
        Returns:
        a new specific AudioListener
      • createNewSource

        public AudioSource createNewSource​(java.lang.String systemName,
                                           java.lang.String userName)
        Description copied from interface: AudioFactory
        Provide a specific new AudioSource object.
        Parameters:
        systemName - for this object instance
        userName - for this object instance
        Returns:
        a new specific AudioSource