This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"<tr>\\n<td><h3>Mount Point /main.mp3</h3></td>.*?<td>Current Song:</td>\\n<td class=\"streamdata\">(.*?)</td>", 1),
"<tr>\\n<td><h3>Mount Point /main.mp3</h3></td>.*?<td>Current Song:</td>\\n<td class=\"streamdata\">(.*?)</td>"),
});
}
}
publicvoidrunTests(Spleshsplesh)
publicvoidrunTests(Spleshsplesh, boolforceTest)
{
if (testDevs)
Program.DBGLOG="";
if (testDevs||forceTest)
{
StringBuildersw=newStringBuilder();
for (inta=0; a<devs.Length; a++)
{
splesh.prog(a+1, devs.Length);
devs[a].test();
}
/*using (System.IO.StreamWriter sw = new System.IO.StreamWriter("Loopstream.devs", false, Encoding.UTF8))
{
foreach (LSDevice dev in devs)
//devs[a].test();
try
{
devs[a].test();
sw.AppendLine(devs[a].mm.ID);
sw.AppendLine(devs[a].mm.DeviceFriendlyName);
sw.AppendLine(devs[a].mm.FriendlyName);
try
{
dev.test();
sw.WriteLine(dev.mm.ID);
sw.WriteLine(dev.mm.DeviceFriendlyName);
sw.WriteLine(dev.mm.FriendlyName);
try
{
sw.WriteLine(LSDevice.stringer(dev.wf));
}
catch
{
sw.WriteLine("*** bad wf ***");
}
sw.AppendLine(LSDevice.stringer(devs[a].wf));
}
catch
{
sw.WriteLine("*!* bad dev *!*");
sw.AppendLine("*** bad wf ***");
}
sw.WriteLine();
sw.WriteLine("---");
sw.WriteLine();
}
}*/
catch
{
sw.AppendLine("*!* bad dev *!*");
}
sw.AppendLine();
sw.AppendLine("---");
sw.AppendLine();
}
Program.DBGLOG+=sw.ToString();
}
}
@@ -320,11 +317,13 @@ public static LSSettings load()
intmyVer=version();
intiniVer=Convert.ToInt32(ver, 16);
if (myVer!=iniVer&&false)
if (myVer!=iniVer)
{
byte[] bver=BitConverter.GetBytes(iniVer);
Array.Reverse(bver);
System.Windows.Forms.MessageBox.Show(
"Your configuration file is from version "+iniVer+", which is too old.\r\n\r\n"+
"Starting with default config.",
"Your configuration file is from version "+BitConverter.ToString(bver)+", which is rather old.\n\n"+
"Don't get your hopes up but I'll try to load it...",
"Incompatible config file",
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Information);
@@ -338,7 +337,7 @@ public static LSSettings load()
{
ret=newLSSettings();
System.Windows.Forms.MessageBox.Show(
"Failed to load settings:\r\n«Loopstream.ini» is probably from an old version of the program.\r\n\r\nDetailed information:\r\n"+e.Message+"\r\n"+e.StackTrace,
"Failed to load settings:\n«Loopstream.ini» is probably from an old version of the program.\n\nDetailed information:\n"+e.Message+"\n"+e.StackTrace,
"Default settings",
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Information);
@@ -353,8 +352,8 @@ public static LSSettings load()
catch (Exceptione)
{
System.Windows.Forms.MessageBox.Show(
"Failed to initialize settings object:\r\nPossibly from an outdated version of «Loopstream.ini», though more likely a developer fuckup. Go tell ed this:\r\n\r\n"+
"Failed to initialize settings object:\nPossibly from an outdated version of «Loopstream.ini», though more likely a developer fuckup. Go tell ed this:\n\n"+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (DialogResult.Yes==MessageBox.Show("Hey, got some work for you!\r\n\r\n"+
"Some of your devices ("+smp.Trim(',', ' ') +") have\r\na different samplerate than what you\r\nspecified in the settings ("+settings.samplerate+" Hz).\r\n\r\n"+
//"This will still work (I am applying a resampler), but there will be lower sound quality and more load on your computer.\r\n\r\n" +
//"If you want to keep things TopNotchâ„¢, please see the\n\"Soundcard Samplerate\" section in the readme.";
"You can't stream like this.\r\n\r\n"+
"Do you want to fix it now? I'll help you!",
if (DialogResult.Yes==MessageBox.Show(
"Some of your devices ("+smp.Trim(',', ' ') +")\n"+
"have a different samplerate than what you\n"+
"specified in the settings ("+settings.samplerate+" Hz).\n"+
MessageBox.Show("I see you're running the 32bit version of Loopstream!\r\n\r\n"+
"If iTunes still doesn't produce correct tags with this edition of Loopstream, then the problem is probably that your version of iTunes is different from the one that Loopstream supports.\r\n\r\n"+
MessageBox.Show("I see you're running the 32bit version of Loopstream!\n\n"+
"If iTunes still doesn't produce correct tags with this edition of Loopstream, then the problem is probably that your version of iTunes is different from the one that Loopstream supports.\n\n"+
"Yes, iTunes is /that/ picky. Sorry :(");
return;
}
if (DialogResult.Yes==MessageBox.Show(
"This media player's a tricky one.\r\n\r\n"+
"If the tags you send appear to be bullshit,\r\n"+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters