mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
Fix dial-up sound bug
Play the sound on a different thread, and BAM IT WORKS WOW YOY and also link the threads so the main thread waits for the sound thread to end something like that just look at Hack1.cs
This commit is contained in:
parent
66ad623c59
commit
ab67708a62
17 changed files with 377 additions and 379 deletions
Binary file not shown.
|
@ -23,25 +23,22 @@ public void startObjective()
|
|||
{
|
||||
|
||||
wm.startWin95(term, "MS-DOS Prompt", null, true, true);
|
||||
|
||||
Thread theThread = new Thread(startObjectMAIN);
|
||||
|
||||
theThread.Start();
|
||||
term.WriteLine("192.168.0.1 Connecting...");
|
||||
Thread soundThread = new Thread(dialup_sound_play);
|
||||
soundThread.Start();
|
||||
soundThread.Join();
|
||||
term.WriteLine("192.168.0.1 Connected.");
|
||||
|
||||
}
|
||||
|
||||
public void startObjectMAIN()
|
||||
public void dialup_sound_play()
|
||||
{
|
||||
SoundPlayer startsound;
|
||||
term.WriteLine("192.168.0.1 Connecting...");
|
||||
SoundPlayer dialup_sound;
|
||||
|
||||
// Play Dial-up Sound
|
||||
Stream audio = Properties.Resources.modem_dial;
|
||||
startsound = new SoundPlayer(audio);
|
||||
startsound.Play();
|
||||
Thread.Sleep(5000);
|
||||
startsound.Stop();
|
||||
term.WriteLine("192.168.0.1 Connected.");
|
||||
dialup_sound = new SoundPlayer(audio);
|
||||
dialup_sound.PlaySync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>LsDLOvhTumFXl7PJEubVKcoSYmgcDMhPb/hPsvwy4hE=</dsig:DigestValue>
|
||||
<dsig:DigestValue>szMAZloBWxVA5ynGbEjxjLRYcK6rY7+H4OymbTTBl/M=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
|
@ -56,14 +56,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6843392">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6841344">
|
||||
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>TjpsPrDQYX2XBRZ8L60bYC6EIMeJpHwMAi9gfw5pris=</dsig:DigestValue>
|
||||
<dsig:DigestValue>3fpCHDovsrZN6t8xhnBwrr0+usxDXVTwsflvkp9l7XM=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
4ea1307cf50b0551eb868fff46db4571513000aa
|
||||
b9bb0cd6d98804e7ec132cefd188dcac2b58f411
|
||||
|
|
Binary file not shown.
|
@ -136,3 +136,4 @@ C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHA
|
|||
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.WinClassicTerminal.resources
|
||||
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win98.Windows98.resources
|
||||
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.SaveDialogs.SaveFileTroubleShooter.resources
|
||||
C:\Users\Logan\Desktop\GitHub\TimeHACK\TimeHACK.Main\obj\Release\TimeHACK.OS.Win2K.Win2KApps.SurviveTheDay.resources
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>LsDLOvhTumFXl7PJEubVKcoSYmgcDMhPb/hPsvwy4hE=</dsig:DigestValue>
|
||||
<dsig:DigestValue>szMAZloBWxVA5ynGbEjxjLRYcK6rY7+H4OymbTTBl/M=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
|
@ -56,14 +56,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6843392">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6841344">
|
||||
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>TjpsPrDQYX2XBRZ8L60bYC6EIMeJpHwMAi9gfw5pris=</dsig:DigestValue>
|
||||
<dsig:DigestValue>3fpCHDovsrZN6t8xhnBwrr0+usxDXVTwsflvkp9l7XM=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue