summaryrefslogtreecommitdiff
path: root/Penguloon/SoundManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/SoundManager.cs')
-rw-r--r--Penguloon/SoundManager.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Penguloon/SoundManager.cs b/Penguloon/SoundManager.cs
index 8ec0ca7..e665197 100644
--- a/Penguloon/SoundManager.cs
+++ b/Penguloon/SoundManager.cs
@@ -6,6 +6,7 @@ namespace Penguloon
{
public static SoundEffectInstance Baseline { get; set; }
public static SoundEffectInstance BtnClick { get; set; }
+ public static SoundEffectInstance BtnClick2 { get; set; }
public static void StartBaseline()
{
@@ -29,6 +30,19 @@ namespace Penguloon
BtnClick.Play();
}
+ public static void PlayClickSound2()
+ {
+ if (BtnClick2 == null)
+ {
+ SoundEffect effect = ContentManager.GetSound("Sounds/click2");
+ BtnClick2 = effect.CreateInstance();
+ BtnClick2.Volume = 1f;
+ BtnClick2.IsLooped = false;
+ }
+
+ BtnClick2.Play();
+ }
+
public static void PlayBalloonPopSound()
{
SoundEffect popEffect = ContentManager.GetSound("Sounds/pop");