Files
lockstep/app/src/main/cpp/PlaybackEngine.cpp

25 lines
559 B
C++
Raw Normal View History

2026-02-01 02:54:05 +01:00
//
// Created by david on 01.02.2026.
//
#define LOG_TAG "PlaybackEngine"
#include "PlaybackEngine.h"
#include "logging.h"
2026-03-03 12:04:17 +01:00
PlaybackEngine::PlaybackEngine(std::string filesDir): mFilesDir(filesDir) {
2026-02-01 02:54:05 +01:00
LOGI("PlaybackEngine()");
LOGI("NDK LOG_LEVEL=%d", LOG_LEVEL);
// NDK LOG_LEVEL=3 (DEBUG)
mPlayer = new OboeSinePlayer();
int32_t res = mPlayer->startAudio();
LOGI("startAudio() = %d", res);
}
PlaybackEngine::~PlaybackEngine() {
LOGI("~PlaybackEngine()");
mPlayer->stopAudio();
delete mPlayer;
mPlayer = nullptr;
}