File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
hello-oboe/app/src/main/cpp Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1616cmake_minimum_required (VERSION 3.22.1)
1717project (hello-oboe LANGUAGES CXX)
1818
19+ include (AppLibrary)
20+
1921# add oboe pre-release lib hosted at https://maven.google.com/web/index.html
2022# under com.google.oboe:oboe. For documentation about oboe pre-built lib, refer to
2123# https://github.com/google/oboe/blob/master/docs/GettingStarted.md#option-1-using-pre-built-binaries-and-headers
2224find_package (oboe REQUIRED CONFIG)
2325
2426# build application with the oboe lib
25- add_library (${PROJECT_NAME} SHARED hello-oboe.cpp)
27+ add_app_library (${PROJECT_NAME} SHARED hello-oboe.cpp)
2628target_link_libraries (${PROJECT_NAME} oboe::oboe android log )
2729
2830# Enable optimization flags: if having problems with source level debugging,
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ class OboeSinePlayer : public oboe::AudioStreamCallback {
5050
5151 // This class will also be used for the callback
5252 // For more complicated callbacks create a separate class
53- oboe::DataCallbackResult onAudioReady (oboe::AudioStream* oboeStream,
54- void * audioData,
53+ oboe::DataCallbackResult onAudioReady (oboe::AudioStream*, void * audioData,
5554 int32_t numFrames) override {
5655 float * floatData = static_cast <float *>(audioData);
5756 if (isOn) {
You can’t perform that action at this time.
0 commit comments