From 4a0958f1e596c5875e155178bdcfbac89ac64ccb Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 24 Apr 2021 21:41:19 +0100 Subject: [PATCH] Make pause button unpause. --- src/mixer/state.ts | 4 ++++ src/showplanner/Player.tsx | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mixer/state.ts b/src/mixer/state.ts index d800276..3a228b6 100644 --- a/src/mixer/state.ts +++ b/src/mixer/state.ts @@ -445,6 +445,10 @@ export const pause = (player: number): AppThunk => (dispatch, getState) => { sendBAPSicleChannel({ channel: player, command: "PAUSE" }); }; +export const unpause = (player: number): AppThunk => (dispatch, getState) => { + sendBAPSicleChannel({ channel: player, command: "UNPAUSE" }); +}; + export const stop = (player: number): AppThunk => (dispatch, getState) => { sendBAPSicleChannel({ channel: player, command: "STOP" }); }; diff --git a/src/showplanner/Player.tsx b/src/showplanner/Player.tsx index d160831..3c0c3ee 100644 --- a/src/showplanner/Player.tsx +++ b/src/showplanner/Player.tsx @@ -368,7 +368,13 @@ export function Player({ id }: { id: number }) {