aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Dialog.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-15 15:08:21 -0400
committerMichael <[email protected]>2017-04-15 15:08:21 -0400
commit0807e04881336ef51b1c473d2e61d344c8bef113 (patch)
treeef95db0c591c66e78a901a4d23103c6e83963f91 /ShiftOS.WinForms/Applications/Dialog.cs
parent51050a02d4d5eff361cfa697eeba777ddafa085a (diff)
downloadshiftos_thereturn-0807e04881336ef51b1c473d2e61d344c8bef113.tar.gz
shiftos_thereturn-0807e04881336ef51b1c473d2e61d344c8bef113.tar.bz2
shiftos_thereturn-0807e04881336ef51b1c473d2e61d344c8bef113.zip
Add sounds to pong and fix audio bugs
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Dialog.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs
index 171bdc4..593d64b 100644
--- a/ShiftOS.WinForms/Applications/Dialog.cs
+++ b/ShiftOS.WinForms/Applications/Dialog.cs
@@ -52,15 +52,7 @@ namespace ShiftOS.WinForms.Applications
public void OnLoad()
{
AppearanceManager.SetWindowTitle(this, this.Title);
- var str = Properties.Resources.infobox;
- var bytes = new byte[str.Length];
- str.Read(bytes, 0, bytes.Length);
- ShiftOS.Engine.AudioManager.Stop();
- if (File.Exists("snd.wav"))
- File.Delete("snd.wav");
- File.WriteAllBytes("snd.wav", bytes);
-
- ShiftOS.Engine.AudioManager.Play("snd.wav");
+ ShiftOS.Engine.AudioManager.PlayStream(Properties.Resources.infobox);
}
public void OnSkinLoad()