Esempio n. 1
0
            public static LSMeta copy(LSMeta meta)
            {
                LSMeta ret = new LSMeta();

                apply(meta, ret);
                return(ret);
            }
Esempio n. 2
0
 void metaDec(LSMeta meta)
 {
     try
     {
         meta.desc = Z.gzd(meta.desc).Replace("\r", "").Replace("\n", "\r\n");
     }
     catch
     {
         //meta.desc = "(encoding failed)";
     }
 }
Esempio n. 3
0
 void metaEnc(LSMeta meta)
 {
     try
     {
         meta.desc = Z.gze(meta.desc.Replace("\r", ""));
     }
     catch
     {
         meta.desc = "(encoding failed)";
     }
 }
Esempio n. 4
0
 public static void apply(LSMeta src, LSMeta target)
 {
     target.src       = src.src;
     target.ptn       = src.ptn;
     target.tit       = src.tit;
     target.yield     = src.yield;
     target.encoding  = src.encoding;
     target.reader    = src.reader;
     target.freq      = src.freq;
     target.grp       = src.grp;
     target.urldecode = src.urldecode;
     target.desc      = src.desc;
     target.bnc       = src.bnc;
 }
Esempio n. 5
0
 public bool eq(LSMeta meta)
 {
     return
         (src == meta.src &&
          ptn == meta.ptn &&
          tit == meta.tit &&
          yield == meta.yield &&
          encoding == meta.encoding &&
          reader == meta.reader &&
          freq == meta.freq &&
          grp == meta.grp &&
          urldecode == meta.urldecode &&
          bnc == meta.bnc);
     // description left out intentionally
 }
Esempio n. 6
0
 public bool eq(LSMeta meta)
 {
     return
         src == meta.src &&
         ptn == meta.ptn &&
         tit == meta.tit &&
         yield == meta.yield &&
         encoding == meta.encoding &&
         reader == meta.reader &&
         freq == meta.freq &&
         grp == meta.grp &&
         urldecode == meta.urldecode &&
         bnc == meta.bnc;
     // description left out intentionally
 }
Esempio n. 7
0
 public void apply(LSMeta meta)
 {
     LSMeta.apply(meta, this);
 }
Esempio n. 8
0
 public static LSMeta copy(LSMeta meta)
 {
     LSMeta ret = new LSMeta();
     apply(meta, ret);
     return ret;
 }
Esempio n. 9
0
 public static void apply(LSMeta src, LSMeta target)
 {
     target.src = src.src;
     target.ptn = src.ptn;
     target.tit = src.tit;
     target.yield = src.yield;
     target.encoding = src.encoding;
     target.reader = src.reader;
     target.freq = src.freq;
     target.grp = src.grp;
     target.urldecode = src.urldecode;
     target.desc = src.desc;
     target.bnc = src.bnc;
 }
Esempio n. 10
0
        public LSSettings()
        {
            s_devRec = s_devMic = s_devOut = "";
            micLeft = true;
            micRight = false;
            mp3 = new LSParams();
            mp3.enabled = true;
            mp3.compression = LSCompression.cbr;
            mp3.bitrate = 192;
            mp3.quality = 2;
            mp3.channels = LSChannels.stereo;
            mp3.ext = "mp3";
            ogg = new LSParams();
            ogg.enabled = false;
            ogg.compression = LSCompression.q;
            ogg.bitrate = 192;
            ogg.quality = 5;
            ogg.channels = LSChannels.stereo;
            ogg.ext = "ogg";
            samplerate = 44100;
            reverbP = 0;
            reverbS = 90;

            serverPresets = new List<LSServerPreset>();
            host = "become.stream.r-a-d.io";
            port = 1337;
            user = "******";
            pass = "******";
            mount = "main";
            relay = LSRelay.ice;
            title = "Loopstream";
            description = "Cave Explorer Committee";
            genre = "Post-Avant Jazzcore";
            url = "https://github.com/9001/loopstream";
            pubstream = false;

            latin = false;
            tagAuto = true;
            meta = new LSMeta();
            metas = new List<LSMeta>();
            triggers = new List<LSTrigger>();

            resetPresets();
            //presets[0] = new LSPreset(1, 1, 0.32, 1, true, true, true); //DEBUG
            //presets[0] = new LSPreset(0.5, 0.875, 0.32, 0.75, true, true, true); //DEBUG
            mixer = new LSPreset();
            mixer.apply(presets[0]);
            splash = true;
            vu = true;
            testDevs = true;
            killmic = false;
            recMp3 = true;
            recOgg = true;
            recPCM = false;
            showUnavail = false;
            autoconn = false;
            autohide = false;

            // Backwards compatibility
            warn_poor = warn_drop = true;
            lim_poor = 0.92;
            lim_drop = 0.78;

            Logger.app.a("Base LSSettings ready, doing init");
            init();
        }
Esempio n. 11
0
 void metaEnc(LSMeta meta)
 {
     try
     {
         meta.desc = Z.gze(meta.desc.Replace("\r", ""));
     }
     catch
     {
         meta.desc = "(encoding failed)";
     }
 }
Esempio n. 12
0
 void metaDec(LSMeta meta)
 {
     try
     {
         meta.desc = Z.gzd(meta.desc).Replace("\r", "").Replace("\n", "\r\n");
     }
     catch
     {
         //meta.desc = "(encoding failed)";
     }
 }
Esempio n. 13
0
        public LSSettings()
        {
            s_devRec        = s_devMic = s_devOut = "";
            micLeft         = true;
            micRight        = false;
            mp3             = new LSParams();
            mp3.enabled     = true;
            mp3.compression = LSCompression.cbr;
            mp3.bitrate     = 192;
            mp3.quality     = 2;
            mp3.channels    = LSChannels.stereo;
            mp3.ext         = "mp3";
            ogg             = new LSParams();
            ogg.enabled     = false;
            ogg.compression = LSCompression.q;
            ogg.bitrate     = 192;
            ogg.quality     = 5;
            ogg.channels    = LSChannels.stereo;
            ogg.ext         = "ogg";
            samplerate      = 44100;
            reverbP         = 0;
            reverbS         = 90;

            serverPresets = new List <LSServerPreset>();
            host          = "become.stream.r-a-d.io";
            port          = 1337;
            user          = "******";
            pass          = "******";
            mount         = "main";
            relay         = LSRelay.ice;
            title         = "Loopstream";
            description   = "Cave Explorer Committee";
            genre         = "Post-Avant Jazzcore";
            url           = "https://github.com/9001/loopstream";
            pubstream     = false;

            latin    = false;
            tagAuto  = true;
            meta     = new LSMeta();
            metas    = new List <LSMeta>();
            triggers = new List <LSTrigger>();

            resetPresets();
            //presets[0] = new LSPreset(1, 1, 0.32, 1, true, true, true); //DEBUG
            //presets[0] = new LSPreset(0.5, 0.875, 0.32, 0.75, true, true, true); //DEBUG
            mixer = new LSPreset();
            mixer.apply(presets[0]);
            splash      = true;
            vu          = true;
            testDevs    = true;
            killmic     = false;
            recMp3      = true;
            recOgg      = true;
            recPCM      = false;
            showUnavail = false;
            autoconn    = false;
            autohide    = false;

            // Backwards compatibility
            warn_poor = warn_drop = true;
            lim_poor  = 0.92;
            lim_drop  = 0.78;

            Logger.app.a("Base LSSettings ready, doing init");
            init();
        }
Esempio n. 14
0
 public void apply(LSMeta meta)
 {
     LSMeta.apply(meta, this);
 }