TRK is a CSV format that defines a HIT track.
示例#1
0
 public void SetTrack(uint value, uint fallback)
 {
     if (audContent.TracksById.ContainsKey(value))
     {
         ActiveTrack = audContent.TracksById[value];
         Patch = ActiveTrack.SoundID;
     }
     else
     {
         if (audContent.TracksById.ContainsKey(fallback))
         {
             ActiveTrack = audContent.TracksById[fallback];
             Patch = ActiveTrack.SoundID;
         }
         else
         {
             Debug.WriteLine("Couldn't find track: " + value +", with alternative "+fallback);
         }
     }
 }
示例#2
0
 public void SetTrack(uint value)
 {
     if (audContent.TracksById.ContainsKey(value))
     {
         ActiveTrack = audContent.TracksById[value];
         Patch = ActiveTrack.SoundID;
     }
     else
     {
         Debug.WriteLine("Couldn't find track: " + value);
     }
 }