Skip to content

[PCM Offload] PowerPlay Sample App Implementation#2197

Merged
madebymozart merged 18 commits intomainfrom
powerplay-sample
Jul 23, 2025
Merged

[PCM Offload] PowerPlay Sample App Implementation#2197
madebymozart merged 18 commits intomainfrom
powerplay-sample

Conversation

@madebymozart
Copy link
Copy Markdown
Collaborator

This is the powerplay sample app, which allows a user, through oboe, to choose a new performance mode that allows the CPU to sleep significantly more, thus aiding in it's ability to save power.

@madebymozart madebymozart added P1 high priority apps related to a test or example app requires device Requires a specific Android phone model or other specific hardware to test labels Apr 8, 2025
@madebymozart madebymozart added this to the future milestone Apr 8, 2025
@madebymozart madebymozart requested review from flamme and robertwu1 April 8, 2025 14:29
@madebymozart madebymozart self-assigned this Apr 8, 2025
* Add offload support.

Fixes #2154.
Comment thread samples/powerplay/README.md Outdated
Copy link
Copy Markdown
Collaborator

@flamme flamme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be rebased so that the commit doesn't show the already merged PR.

Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.h Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/LiveEffect/src/main/cpp/CMakeLists.txt Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/kotlin/com/example/powerplay/ui/theme/Theme.kt Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
@madebymozart
Copy link
Copy Markdown
Collaborator Author

Opening a new pr that extracts this app into a standalone to avoid making changes to some of the shared libraries

@madebymozart madebymozart reopened this Jul 16, 2025
@madebymozart madebymozart marked this pull request as ready for review July 16, 2025 17:07
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.h Outdated
Comment thread samples/powerplay/build.gradle Outdated
Comment thread samples/powerplay/src/main/kotlin/com/example/powerplay/MainActivity.kt Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.h
Comment thread samples/powerplay/src/main/kotlin/com/example/powerplay/MainActivity.kt Outdated
Comment thread samples/drumthumper/src/main/cpp/DrumPlayerJNI.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/drumthumper/src/main/cpp/DrumPlayerJNI.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/kotlin/com/example/powerplay/ui/theme/Shape.kt Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/kotlin/com/example/powerplay/MainActivity.kt Outdated
Comment thread samples/powerplay/build.gradle Outdated
Comment thread samples/powerplay/README.md Outdated
Comment thread samples/powerplay/README.md Outdated
Comment thread samples/settings.gradle Outdated
// The aaudio device type and aaudio policy were added in NDK 28,
// which is the first version to support Android W (API 36).
#if __NDK_MAJOR__ >= 29
#if __NDK_MAJOR__ >= 30
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems need to be verified. BTW, the comment above should be changed for consistency

Comment thread src/aaudio/AAudioLoader.h
#endif

#if OBOE_USING_NDK && __NDK_MAJOR__ < 29
#if OBOE_USING_NDK && __NDK_MAJOR__ < 30
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to verify this. NDK 30 is not yet available. Does NDK 29 beta 2 have it? https://groups.google.com/g/android-ndk-announce/c/3A_x9XLSZNw

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't unfortunately

Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/gradle.properties Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.cpp Outdated
Comment thread samples/iolib/src/main/cpp/player/SimpleMultiPlayer.h Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayJNI.cpp Outdated
Comment thread samples/powerplay/build.gradle Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp
@madebymozart madebymozart requested review from flamme and robertwu1 July 23, 2025 19:42
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp Outdated
Comment thread samples/powerplay/src/main/cpp/PowerPlayMultiPlayer.cpp
@madebymozart madebymozart merged commit 1981c66 into main Jul 23, 2025
3 checks passed
@madebymozart madebymozart deleted the powerplay-sample branch July 23, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps related to a test or example app P1 high priority requires device Requires a specific Android phone model or other specific hardware to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants