12345678910111213141516171819 |
- #include <spdlog/spdlog.h>
- #include "LogAudio.h"
- int main () {
- Audio::AudioInterface *m = new Audio::LogAudio();
- m->play();
-
- if (m->is_playing()) {
- spdlog::info("Player is on play mode");
- } else {
- spdlog::info("Player is on pause mode");
- }
- m->pause();
-
- }
|