Skip to content

Commit 5749c5f

Browse files
Dan AlbertDanAlbert
authored andcommitted
Increase warning level in hello-oboe.
1 parent 6d843ce commit 5749c5f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hello-oboe/app/src/main/cpp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
cmake_minimum_required(VERSION 3.22.1)
1717
project(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
2224
find_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)
2628
target_link_libraries(${PROJECT_NAME} oboe::oboe android log)
2729

2830
# Enable optimization flags: if having problems with source level debugging,

hello-oboe/app/src/main/cpp/OboeSinePlayer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)