static SoundM() { Current = new SoundM(); Sound.Initialize(); string[] files = System.IO.Directory.GetFiles(@"Sounds", "*", System.IO.SearchOption.TopDirectoryOnly); foreach(string path in files) { string name = path.Split('\\')[1]; name = name.Split('.')[0]; Sound s = new Sound(); s.ReadSoundFile(path); Current.Album.Add(name, s); } App.Current.Exit += Current_Exit; }
public GameMakerVM() { SoundM dummy = new SoundM(); }