initial: oboe, logging
This commit is contained in:
24
app/src/main/cpp/PlaybackEngine.cpp
Normal file
24
app/src/main/cpp/PlaybackEngine.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by david on 01.02.2026.
|
||||
//
|
||||
|
||||
#define LOG_TAG "PlaybackEngine"
|
||||
|
||||
#include "PlaybackEngine.h"
|
||||
#include "logging.h"
|
||||
|
||||
PlaybackEngine::PlaybackEngine() {
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user