This commit is contained in:
2022-08-16 16:14:25 +03:00
parent 2fcd86cf12
commit 1f1983480a
32 changed files with 195 additions and 65 deletions

View File

@@ -5,7 +5,8 @@ namespace MusicCommands;
internal class MusicPlayer
{
private Stream outputStream { get; }
private Stream outputStream { get; }
internal AudioFile NowPlaying = null;
internal bool isPlaying, isPaused;
@@ -14,9 +15,10 @@ internal class MusicPlayer
outputStream = outputChannel;
}
public async Task Play(Stream source, int byteSize)
public async Task Play(Stream source, int byteSize, AudioFile songPlaying)
{
isPlaying = true;
isPlaying = true;
NowPlaying = songPlaying;
while (isPlaying)
{
if (isPaused)