#pragma once
#include "utils.h"

class PlaybackTracer {
  class EngineThread& thread;

 public:
  explicit PlaybackTracer(EngineThread& thread) : thread(thread){};
  void delay(double extra_time);
  void moveToNowPlaying();
  void onPlaybackNewTrack(metadb_handle_ptr p_track);

 private:
  std::optional<Timer> delayTimer;
};
