diff options
author | natrixaeria <janng@gmx.de> | 2019-05-19 17:40:59 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-19 17:40:59 +0200 |
commit | 1509b5ef3d7e9e71d9294e234ec0e39f2d831998 (patch) | |
tree | 78300ffff230958101b422a4e6026925b287822f /DiscoBot/Audio/Soundeffects.cs | |
parent | c3bb858bb54dc8c64bbd48054c2c58dc0073f09c (diff) | |
parent | c4d046858e0822b7c2c540ac2368b2c0e88e7a26 (diff) |
Merge branch 'scribble' of https://github.com/TrueDoctor/DiscoBot into scribble
Diffstat (limited to 'DiscoBot/Audio/Soundeffects.cs')
-rw-r--r-- | DiscoBot/Audio/Soundeffects.cs | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/DiscoBot/Audio/Soundeffects.cs b/DiscoBot/Audio/Soundeffects.cs deleted file mode 100644 index f3a014c..0000000 --- a/DiscoBot/Audio/Soundeffects.cs +++ /dev/null @@ -1,93 +0,0 @@ -namespace DiscoBot.Audio -{ - using System; - using System.Linq; - using System.Threading.Tasks; - - using DiscoBot.Auxiliary; - using DiscoBot.Commands; - using DiscoBot.DSA_Game; - - /*public enum Sound - { - Bell, - Ding, - Nooo, - Monsterkill, - Finish, - Wrong, - Magic, - Stupid, - Police, - Roblox - }*/ - - public static class SoundEffects - { - public static int MaxVolume { get; set; } = 50; - - public static void Play(string s) - { - string url = string.Empty; - int volume = 255; - - var tSound = DSA_Game.Save.Properties.Sounds.OrderBy(x => SpellCorrect.CompareEasy(s, x.Name)).First(); - - url = s; - - switch (s) - { - case "Bell": - case "Ding": - url = "https://www.myinstants.com/media/sounds/boxing-bell.mp3"; - break; - case "Finish": - url = "https://www.myinstants.com/media/sounds/finishhim.swf.mp3"; - break; - case "Magic": - url = "https://www.myinstants.com/media/sounds/dream-harp-sound-effect.mp3"; - break; - case "Monsterkill": - url = "https://www.myinstants.com/media/sounds/announcer_kill_monster_01.mp3"; - break; - case "Nooo": - url = "https://www.myinstants.com/media/sounds/nooo.swf.mp3"; - break; - case "Roblox": - url = "https://www.myinstants.com/media/sounds/roblox-death-sound_ytkBL7X.mp3"; - break; - case "Stupid": - url = "https://www.myinstants.com/media/sounds/stupid_dum_03.mp3"; - volume = 10; - break; - case "Police": - url = "https://www.myinstants.com/media/sounds/sound-of-the-police.mp3"; - break; - case "Wrong": - url = "https://www.myinstants.com/media/sounds/wrong-answer-sound-effect.mp3"; - volume = 50; - break; - } - - - - if (SpellCorrect.CompareEasy(s, tSound.Name) < SpellCorrect.ErrorThreshold) - { - url = tSound.Url; - volume = tSound.Volume; - } - - volume = (int)(volume * (MaxVolume / 100.0)); - - - if (url != string.Empty) - { - // await Dsa.Service.SendAudioAsync(url, vol); - Voice.Send(url, volume); - return; - } - - throw new Exception("Ton Existiert nicht"); - } - } -} |