Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrgaton committed Feb 12, 2024
1 parent c26e48e commit acc0508
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Telefono de rosalia/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Media;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;

namespace Telefono_de_rosalia
Expand Down Expand Up @@ -44,7 +45,7 @@ private static bool IsGenuineWindows()

bool _IsGenuineWindows = false;

SLID windowsSlid = (Guid)new Guid("55c92734-d682-4d71-983e-d6ec3f16059f");
SLID windowsSlid = new Guid("55c92734-d682-4d71-983e-d6ec3f16059f");
try
{
SL_GENUINE_STATE genuineState = SL_GENUINE_STATE.SL_GEN_STATE_LAST;
Expand All @@ -55,6 +56,7 @@ private static bool IsGenuineWindows()
}
}
catch { }

return _IsGenuineWindows;
}
}
Expand Down Expand Up @@ -83,11 +85,13 @@ private static void Main()
{
for (int e = 0; e < freqs2.Length; e++)
{
using (var tone = GenerateTone(0.8, freqs[i], freqs2[e]))
using (var tone = GenerateTone(0.25, freqs[i], freqs2[e]))
{
using (var player = new SoundPlayer(tone))
{
player.PlaySync();
player.Play();

Thread.Sleep(800);
}
}
}
Expand Down

0 comments on commit acc0508

Please sign in to comment.