FactoryRegistry
Instances of this class are thread-safe. @since 0.0.8
//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); } }
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); }
//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; } }