summaryrefslogtreecommitdiff
path: root/DiscoBot/Audio/Soundeffects.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-06 17:10:58 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-06 17:10:58 +0200
commit97450e451fe535bccec1651b9960dd0f446736f3 (patch)
treeea7f71994687c505505c5c7070f659b9be15d529 /DiscoBot/Audio/Soundeffects.cs
parent7f55f6f289b5ab5b7fd4ac42b472b51a9a0e679e (diff)
fixed some async stuff
Diffstat (limited to 'DiscoBot/Audio/Soundeffects.cs')
-rw-r--r--DiscoBot/Audio/Soundeffects.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/DiscoBot/Audio/Soundeffects.cs b/DiscoBot/Audio/Soundeffects.cs
index 7e5e918..1e6dda1 100644
--- a/DiscoBot/Audio/Soundeffects.cs
+++ b/DiscoBot/Audio/Soundeffects.cs
@@ -23,10 +23,10 @@
{
public static int Volume { get; set; } = 50;
- public static async Task Play(Sound s)
+ public static void Play(Sound s)
{
string url = string.Empty;
- int volume = 256;
+ int volume = 255;
switch (s)
{
case Sound.Bell:
@@ -35,7 +35,7 @@
break;
case Sound.Finish:
url = "https://www.myinstants.com/media/sounds/finishhim.swf.mp3";
- break;
+ break;
case Sound.Magic:
url = "https://www.myinstants.com/media/sounds/dream-harp-sound-effect.mp3";
break;
@@ -58,7 +58,7 @@
case Sound.Wrong:
url = "https://www.myinstants.com/media/sounds/wrong-answer-sound-effect.mp3";
volume = 50;
- break;
+ break;
}
volume = (int)(volume * (Volume / 100.0));
@@ -67,7 +67,7 @@
if (url != string.Empty)
{
// await Dsa.Service.SendAudioAsync(url, vol);
- Voice.SendAsync(url, volume);
+ Voice.Send(url, volume);
return;
}