Browse Source

Set proper sound channel type for NinjaSnowWar music.

Lasse Öörni 12 years ago
parent
commit
f07f883ee9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Bin/Data/Scripts/NinjaSnowWar.as

+ 2 - 1
Bin/Data/Scripts/NinjaSnowWar.as

@@ -104,7 +104,7 @@ void InitAudio()
 
 
     // Lower mastervolumes slightly.
     // Lower mastervolumes slightly.
     audio.masterGain[SOUND_MASTER] = 0.75;
     audio.masterGain[SOUND_MASTER] = 0.75;
-    audio.masterGain[SOUND_MUSIC] = 0.75;
+    audio.masterGain[SOUND_MUSIC] = 0.9;
 
 
     if (!nobgm)
     if (!nobgm)
     {
     {
@@ -115,6 +115,7 @@ void InitAudio()
         // Due to networked mode clearing the scene on connect, do not attach to the scene itself
         // Due to networked mode clearing the scene on connect, do not attach to the scene itself
         musicNode = Node();
         musicNode = Node();
         musicSource = musicNode.CreateComponent("SoundSource");
         musicSource = musicNode.CreateComponent("SoundSource");
+        musicSource.soundType = SOUND_MUSIC;
         musicSource.Play(musicFile);
         musicSource.Play(musicFile);
     }
     }
 }
 }