player/Control: Play*() returns Error information

This commit is contained in:
Max Kellermann
2015-11-11 19:57:37 +01:00
parent 2065e32904
commit fb547260d1
9 changed files with 82 additions and 54 deletions

View File

@@ -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,