improved speed, added local data lists, some cleaning
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user