Basic shuffle features, must fix deadlocks
This commit is contained in:
@ -155,7 +155,9 @@ namespace unison
|
||||
|
||||
try
|
||||
{
|
||||
Debug.WriteLine("SafelySendCommandAsync => before command");
|
||||
IMpdMessage<T> response = await _commandConnection.SendAsync(command);
|
||||
Debug.WriteLine("SafelySendCommandAsync => after command");
|
||||
if (!response.IsResponseValid)
|
||||
{
|
||||
string mpdError = response.Response?.Result?.MpdError;
|
||||
@ -498,6 +500,8 @@ namespace unison
|
||||
public void Next() => SendCommand(new NextCommand());
|
||||
public void PlayPause() => SendCommand(new PauseResumeCommand());
|
||||
|
||||
public void Play(int pos) => SendCommand(new PlayCommand(pos));
|
||||
|
||||
public void Random() => SendCommand(new RandomCommand(!_currentRandom));
|
||||
public void Repeat() => SendCommand(new RepeatCommand(!_currentRepeat));
|
||||
public void Single() => SendCommand(new SingleCommand(!_currentSingle));
|
||||
|
Reference in New Issue
Block a user