#pragma once

namespace playlist {
  struct playlist_item {
    const char * const artist;
    const char * const title;
    const int start;
    const int cover_ix;
  };

  struct state {
    int playlist_ix;
    int loops;
  };

  bool next(bool stop_sound=true);
  bool prev(bool stop_sound=true);

  extern struct state state;
  extern const playlist_item playlist[];
  extern const int playlist_length;
}
