Пример #1
0
        public MemoryListener(ISettings settings, ISaver saver, IContextAwareLogger logger)
        {
            _settings = settings;
            _settings.SettingUpdated += SettingUpdated;

            _memoryDataProcessor = new MemoryDataProcessor(settings, logger);
            _patternsDispatcher  = new PatternsDispatcher(settings, saver);
            _memoryDataProcessor.TokensUpdated += (_, status) => _patternsDispatcher.TokensUpdated(status);
            _memoryDataProcessor.ToggleSmoothing(_settings.Get <bool>(Helpers.EnablePpSmoothing));
        }
Пример #2
0
 public MemoryListener(string songsFolderLocation)
 {
     _memoryDataProcessor = new MemoryDataProcessor(songsFolderLocation);
 }
Пример #3
0
 public MemoryListener()
 {
     _memoryDataProcessor = new MemoryDataProcessor();
 }
Пример #4
0
 public MemoryListener()
 {
     _memoryDataProcessor = new MemoryDataProcessor();
     _patternsDispatcher  = new PatternsDispatcher();
     _memoryDataProcessor.TokensUpdated += (_, status) => _patternsDispatcher.TokensUpdated(status);
 }