Fixed volume, closes #1332
This commit is contained in:
parent
c244cb7de0
commit
768c8b20ee
@ -188,7 +188,7 @@ namespace NadekoBot.Services.Music
|
|||||||
while ((bytesRead = b.Read(buffer, 0, buffer.Length)) > 0
|
while ((bytesRead = b.Read(buffer, 0, buffer.Length)) > 0
|
||||||
&& (MaxPlaytimeSeconds <= 0 || MaxPlaytimeSeconds >= CurrentTime.TotalSeconds))
|
&& (MaxPlaytimeSeconds <= 0 || MaxPlaytimeSeconds >= CurrentTime.TotalSeconds))
|
||||||
{
|
{
|
||||||
//AdjustVolume(buffer, Volume);
|
AdjustVolume(buffer, Volume);
|
||||||
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
|
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
|
||||||
unchecked { _bytesSent += bytesRead; }
|
unchecked { _bytesSent += bytesRead; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user