diff options
author | Max Kellermann <max@duempel.org> | 2015-11-11 19:57:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-28 13:31:41 +0100 |
commit | fb547260d1b992b64c0ffd78e3bc55db86f90bda (patch) | |
tree | 073b6764c09ae4e64702e77bf9376334755e9e02 /src/Partition.hxx | |
parent | 2065e3290452377b2931f3129b230c8cc536cbc8 (diff) |
player/Control: Play*() returns Error information
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r-- | src/Partition.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx index 43a77f32a..6e209352e 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -123,20 +123,20 @@ struct Partition final : private PlayerListener, private MixerListener { playlist.Stop(pc); } - void PlayPosition(int position) { - playlist.PlayPosition(pc, position); + bool PlayPosition(int position, Error &error) { + return playlist.PlayPosition(pc, position, error); } - void PlayId(int id) { - playlist.PlayId(pc, id); + bool PlayId(int id, Error &error) { + return playlist.PlayId(pc, id, error); } - void PlayNext() { - playlist.PlayNext(pc); + bool PlayNext(Error &error) { + return playlist.PlayNext(pc, error); } - void PlayPrevious() { - playlist.PlayPrevious(pc); + bool PlayPrevious(Error &error) { + return playlist.PlayPrevious(pc, error); } bool SeekSongPosition(unsigned song_position, |