示例#1
0
        public void PlaySound(Sound sound)
        {
            if (SoundMode is SoundMode.None)
            {
                return;
            }

            var path = Path.Combine("Sounds", SoundMode.ConvertToString(), $"{sound.ConvertToString()}.mp3");

            PlayFile(new Uri(path, UriKind.Relative), Volume);
        }