Androidbooster audio
Skill huhx0015/AndroidBooster/claude/skills/androidbooster-audio
Android Booster: An Android starter project that provides a modular foundation for building production-ready apps. It offers multiple architecture patterns (MVI, MVVM, MVP, VIPER) with shared base classes, so you can choose the approach that fits each feature.
npx -y skills add huhx0015/AndroidBooster --skill androidbooster-audioAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
HX Audio Player for music and sound playback. Use when implementing music playback, sound effects, HXMusic, HXSound, or audio in AndroidBooster. Uses hxaudio-v331.aar in core/audio.
SKILL.md
2.6 KB, as published. Nobody here has run it
AndroidBooster Audio (HX Audio Player)
Use HX Audio Player for music and sound in AndroidBooster. The library is in core/audio (hxaudio-v331.aar). Supports Android 2.3+ with workarounds for MediaPlayer/SoundPool bugs.
Audio files: Place audio files in the res/raw/ folder (e.g. res/raw/my_song.mp3 → R.raw.my_song).
Music Playback (HXMusic)
Play from resource:
HXMusic.music()
.load(R.raw.my_song_name) // [REQUIRED]
.title("My Awesome Song") // [OPTIONAL]
.artist("Mr. Anonymous") // [OPTIONAL]
.date("January 1, 1998") // [OPTIONAL]
.at(5) // Start position (seconds)
.gapless(true) // Gapless playback
.looped(true) // Loop
.play(this) // [REQUIRED]
Play from path/URL:
HXMusic.music()
.load("http://example.com/song.mp3")
.title("My Awesome Song")
.play(this)
Control:
HXMusic.pause()— PauseHXMusic.resume(this)— ResumeHXMusic.stop()— Stop allHXMusic.isPlaying()— BooleanHXMusic.getPosition()/HXMusic.setPosition(0)— PositionHXMusic.setListener(this)— HXMusicListenerHXMusic.getStatus()— Status stringHXMusic.enable(true)— Enable/disableHXMusic.logging(true)— Log outputHXMusic.clear()— Clear when app is terminating
Lifecycle (Activity/Fragment): When pausing music on background and resuming on foreground:
onPause()→HXMusic.pause()— Pause when app is backgroundedonResume()→HXMusic.resume(this)— Resume when activity/fragment is in foreground- App terminating →
HXMusic.clear()— Clean up when the app is shutting down
Sound Playback (HXSound)
Play sound:
HXSound.sound()
.load(R.raw.my_sound_effect) // [REQUIRED]
.looped(true) // [OPTIONAL]
.play(this) // [REQUIRED]
Control:
HXSound.pause()— Pause looping soundsHXSound.resume()— ResumeHXSound.load()— Pre-load resourcesHXSound.engines(2)— Multiple sound engines (API 9–10)HXSound.enable(true)— Enable/disableHXSound.reinitialize(this)— Re-init (API 9–10)HXSound.logging(true)— Log outputHXSound.clear()— Clear when no longer needed
Module
Add core:audio dependency. Audio is provided via hxaudio-v331.aar in the audio module.