Ejemplo n.º 1
0
        public HelloWorld(CeilidhConfig config, ILocalizationController localization, IDebugOutputController debug, IEnumerable <IOutputController> output)
        {
            debug.WriteLine(localization.Translate("hello", "Ceilidh"), DebugMessageLevel.Info);

            debug.WriteLine($"Home path: {config.HomePath}", DebugMessageLevel.Info);

            var outputs = output.ToArray();

            foreach (var controller in outputs)
            {
                debug.WriteLine($"Found audio API: {controller.ApiName}", DebugMessageLevel.Info);
            }
        }
 public ReplayGainAdaptiveFilter(ILocalizationController localizationController)
 {
     Name = localizationController.Translate("filter.replaygain.adaptive");
 }
Ejemplo n.º 3
0
 public ReformatFilter(ILocalizationController localization)
 {
     Name = localization.Translate("filter.resample");
 }
Ejemplo n.º 4
0
 public void Pluralization()
 {
     Assert.Equal("0 items", _localization.Translate("test.plural", 0));
     Assert.Equal("1 item", _localization.Translate("test.plural", 1));
     Assert.Equal("2 items", _localization.Translate("test.plural", 2));
 }
 public EqualizerFilter(ILocalizationController localization)
 {
     Name = localization.Translate("filter.equalizer");
 }
Ejemplo n.º 6
0
 public DummyOutputDevice(IOutputController controller, ILocalizationController localization)
 {
     Name       = localization.Translate(DUMMY_NAME_KEY);
     Controller = controller;
 }
Ejemplo n.º 7
0
        public DummyOutputController(ILocalizationController localization)
        {
            ApiName = localization.Translate(DUMMY_API_NAME_KEY);

            _localization = localization;
        }