From ee0202042aafc76eb4339b3a04d06d06921ccdc2 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Tue, 25 Sep 2018 21:36:25 +0200 Subject: minor error fixes and functional improvements --- DiscoBot/Audio/Voice.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'DiscoBot/Audio/Voice.cs') diff --git a/DiscoBot/Audio/Voice.cs b/DiscoBot/Audio/Voice.cs index 24512d2..379f65b 100644 --- a/DiscoBot/Audio/Voice.cs +++ b/DiscoBot/Audio/Voice.cs @@ -78,7 +78,7 @@ { if (volume <= 100 && volume >= 0) { - SoundEffects.Volume = volume; + SoundEffects.MaxVolume = volume; } } @@ -90,6 +90,8 @@ await this.Context.Channel.SendMessageAsync("Erst Joinen!"); } + SoundEffects.Play(path); + var sounds = Enum.GetValues(typeof(Sound)); var soundList = new List(); foreach (var sound in sounds) -- cgit v1.2.3-70-g09d2