示例#1
0
 public static void TrueLoadSong(string key)
 {
     if (!SongList.ContainsKey(key) && LoadSongList.ContainsKey(key))
     {
         WavStream wav = new WavStream();
         wav.load(LoadPath + LoadSongList[key]);
         SongList.Add(key, wav);
     }
 }
示例#2
0
        public static void LoadSong(string key, string path, double defaultVolume = 1)
        {
#if DEBUG
            GhostLoadSong(key, path, defaultVolume);
#else
            WavStream wav = new WavStream();
            wav.load(LoadPath + path);
            SongList.Add(key, wav);
            DefaultSongVolume.Add(key, defaultVolume);
#endif
        }