improved speed, added local data lists, some cleaning

This commit is contained in:
2025-09-10 22:50:41 +02:00
parent f35461cc50
commit 56b8c73297
9 changed files with 336 additions and 280 deletions

View File

@@ -4,14 +4,21 @@
# a higher-level playback functionality is provided.
# Available playback commands
PLAYBACK_CMD_PLAY="play"
PLAYBACK_CMD_QUEUE="queue"
PLAYBACK_CMD_QUEUE_NEXT="queue-next"
PLAYBACK_CMD_TOGGLE_PLAYBACK="toggle"
PLAYBACK_CMD_PLAY_NEXT="next"
PLAYBACK_CMD_PLAY_PREV="prev"
PLAYBACK_CMD_SEEK_FORWARD="seekf"
PLAYBACK_CMD_SEEK_BACKWARD="seekb"
if [ ! "${PLAYBACK_LOADED:-}" ]; then
PLAYBACK_CMD_PLAY="play"
PLAYBACK_CMD_QUEUE="queue"
PLAYBACK_CMD_QUEUE_NEXT="queue-next"
PLAYBACK_CMD_TOGGLE_PLAYBACK="toggle"
PLAYBACK_CMD_PLAY_NEXT="next"
PLAYBACK_CMD_PLAY_PREV="prev"
PLAYBACK_CMD_SEEK_FORWARD="seekf"
PLAYBACK_CMD_SEEK_BACKWARD="seekb"
export PLAYBACK_CMD_PLAY PLAYBACK_CMD_QUEUE PLAYBACK_CMD_QUEUE_NEXT \
PLAYBACK_CMD_TOGGLE_PLAYBACK PLAYBACK_CMD_PLAY_NEXT \
PLAYBACK_CMD_PLAY_PREV PLAYBACK_CMD_SEEK_FORWARD PLAYBACK_CMD_SEEK_BACKWARD
export PLAYBACK_LOADED=1
fi
# Obtain playback command from key press
# @argument $1: key