aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/Playlist.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 03:00:01 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 18:55:41 +0200
commit751995ab95298bbc0afad6958bfccce535edf53c (patch)
tree29e8b8d35536e98fc503963d86260d74a872db91 /src/queue/Playlist.hxx
parent5ca6e2910ae0a8a2d1fa7b16f56130d533251ff9 (diff)
downloadmpd-751995ab95298bbc0afad6958bfccce535edf53c.tar.gz
mpd-751995ab95298bbc0afad6958bfccce535edf53c.tar.xz
mpd-751995ab95298bbc0afad6958bfccce535edf53c.zip
QueueCommands: new command "rangeid"
Manipulates the playback range of a queued song.
Diffstat (limited to '')
-rw-r--r--src/queue/Playlist.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx
index f2d778382..0f73a0513 100644
--- a/src/queue/Playlist.hxx
+++ b/src/queue/Playlist.hxx
@@ -225,6 +225,14 @@ public:
PlaylistResult SetPriorityId(PlayerControl &pc,
unsigned song_id, uint8_t priority);
+ /**
+ * Sets the start_ms and end_ms attributes on the song
+ * with the specified id.
+ */
+ bool SetSongIdRange(PlayerControl &pc, unsigned id,
+ unsigned start_ms, unsigned end_ms,
+ Error &error);
+
bool AddSongIdTag(unsigned id, TagType tag_type, const char *value,
Error &error);
bool ClearSongIdTag(unsigned id, TagType tag_type, Error &error);