The FactoryRegistry class stores the factories for all the audio device implementations available in the system.

Instances of this class are thread-safe. @since 0.0.8

Inheritance: AudioDeviceFactory
示例#1
0
 //UPGRADE_NOTE: Synchronized keyword was removed from method 'systemRegistry'. Lock expression was added. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1027"'
 static public FactoryRegistry systemRegistry()
 {
     lock (typeof(javazoom.jl.player.FactoryRegistry))
     {
         if (instance == null)
         {
             instance = new FactoryRegistry();
             instance.registerDefaultFactories();
         }
         return(instance);
     }
 }
示例#2
0
        public Player(System.IO.Stream stream, AudioDevice device)
        {
            bitstream = new Bitstream(stream);
            decoder   = new Decoder();

            if (device != null)
            {
                audio = device;
            }
            else
            {
                FactoryRegistry r = FactoryRegistry.systemRegistry();
                audio = r.createAudioDevice();
            }
            audio.open(decoder);
        }
示例#3
0
 //UPGRADE_NOTE: Synchronized keyword was removed from method 'systemRegistry'. Lock expression was added. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1027"'
 public static FactoryRegistry systemRegistry()
 {
     lock (typeof(javazoom.jl.player.FactoryRegistry))
     {
         if (instance == null)
         {
             instance = new FactoryRegistry();
             instance.registerDefaultFactories();
         }
         return instance;
     }
 }