예제 #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);
 }