Skip to content

[PowerPlay] Add Local Playback and support#2363

Merged
madebymozart merged 8 commits intomainfrom
madebymozart/add-local-file-playback
Apr 8, 2026
Merged

[PowerPlay] Add Local Playback and support#2363
madebymozart merged 8 commits intomainfrom
madebymozart/add-local-file-playback

Conversation

@madebymozart
Copy link
Copy Markdown
Collaborator

Added the ability for local file playback to powerplay and Wav Info

Screenshot_20260408_131322 Screenshot_20260408_132028

* Remove redundant comments and documentation blocks across `MainActivity.kt` and `PowerPlayMultiPlayer.cpp`.
* Delete an unused Kotlin compiler session file.
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.

Can we leave this song?

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.

There song is still there, I just updated it to be 44.1/16 bit instead of 44.1/32 bit to assure it still worked


private val dynamicPlayList = mutableStateListOf<Music>()
private val isLoadingFile = mutableStateOf(false)

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.

Please fix the new lines in this file. There are too many large gaps

env->GetByteArrayRegion(bytearray, 0, len, reinterpret_cast<jbyte *>(buf));

MemInputStream stream(buf, len);
WavStreamReader reader(&stream);
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.

Take a look at https://github.com/google/oboe/blob/1c48a817d2d6a07adf867986a32c96cbf84367b0/samples/parselib/src/main/cpp/wav/WavStreamReader.cpp.

This file should work for the majority of files but this is a very basic wav file parser. Please download a variety of WAV files to make sure it works. Thanks!


#ifdef __cplusplus
}
#endif No newline at end of file
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.

New line at the end of files

@madebymozart madebymozart requested a review from robertwu1 April 8, 2026 18:11
@madebymozart madebymozart merged commit 141c54e into main Apr 8, 2026
3 checks passed
@madebymozart madebymozart deleted the madebymozart/add-local-file-playback branch April 8, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants