|
@ -8,7 +8,7 @@ namespace SemiColinGames { |
|
|
public static SoundEffect[] SwordSwings = new SoundEffect[14]; |
|
|
public static SoundEffect[] SwordSwings = new SoundEffect[14]; |
|
|
|
|
|
|
|
|
// Returns true if all SoundEffects were successfully loaded.
|
|
|
// Returns true if all SoundEffects were successfully loaded.
|
|
|
public static bool Load(ContentManager content) { |
|
|
|
|
|
|
|
|
public static void Load(ContentManager content) { |
|
|
try { |
|
|
try { |
|
|
IntroMusic = content.Load<SoundEffect>("music/playonloop/smash_bros_short"); |
|
|
IntroMusic = content.Load<SoundEffect>("music/playonloop/smash_bros_short"); |
|
|
SwordSwings[0] = content.Load<SoundEffect>("sfx/zs_whoosh_30568"); |
|
|
SwordSwings[0] = content.Load<SoundEffect>("sfx/zs_whoosh_30568"); |
|
@ -25,9 +25,8 @@ namespace SemiColinGames { |
|
|
SwordSwings[11] = content.Load<SoundEffect>("sfx/zs_whoosh_30579"); |
|
|
SwordSwings[11] = content.Load<SoundEffect>("sfx/zs_whoosh_30579"); |
|
|
SwordSwings[12] = content.Load<SoundEffect>("sfx/zs_whoosh_30580"); |
|
|
SwordSwings[12] = content.Load<SoundEffect>("sfx/zs_whoosh_30580"); |
|
|
SwordSwings[13] = content.Load<SoundEffect>("sfx/zs_whoosh_30581"); |
|
|
SwordSwings[13] = content.Load<SoundEffect>("sfx/zs_whoosh_30581"); |
|
|
return true; |
|
|
|
|
|
} catch (NoAudioHardwareException) { |
|
|
} catch (NoAudioHardwareException) { |
|
|
return false; |
|
|
|
|
|
|
|
|
Debug.WriteLine("SoundEffects.Load(): NoAudioHardwareException"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|