Пример #1
0
        void InitPortedCode(string playername)
        {
            PlaylistTextFile = new TextFileObject(Path.Combine(thisNotifierDataDir, "playlist.txt"), true, false, true, false, false, false);
            LoadPlaylist();

            try
            {
                defQueueSoundPlayer = new SB_SoundPlayer(Path.Combine(ParentModule.ModuleAssetDir, "defQueueSound.ogg"));
                defQueueSoundPlayer.Load(volumeAdjust: false);
            }
            catch (Exception _e)
            {
                Logger.LogError("could not load default queue sound", this, _e);
                defQueueSoundPlayerEnabled = false;
            }
        }
Пример #2
0
 void InitLogState()
 {
     isInitialized = false;
     SetPathToLogFile(this.logDirPath);
     this.LogFile = new TextFileObject(this.logAddress, true, false, false, true, true, true, true);
     this.UpdateAndGetNewEvents();
 }