main.cpp 307 B

12345678910111213141516171819
  1. #include <spdlog/spdlog.h>
  2. #include "LogAudio.h"
  3. int main () {
  4. Audio::AudioInterface *m = new Audio::LogAudio();
  5. m->play();
  6. if (m->is_playing()) {
  7. spdlog::info("Player is on play mode");
  8. } else {
  9. spdlog::info("Player is on pause mode");
  10. }
  11. m->pause();
  12. }