Skip to content
Back to skills

Androidbooster Audio

ASecurity

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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentkotlinapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add huhx0015/AndroidBooster --skill androidbooster-audio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Androidbooster Audio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Androidbooster Audio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huhx0015-androidbooster-audio/badge)](https://www.skillsdirectory.com/skills/huhx0015-androidbooster-audio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: androidbooster-audio
description: 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.
---

# 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:**
```kotlin
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:**
```kotlin
HXMusic.music()
    .load("http://example.com/song.mp3")
    .title("My Awesome Song")
    .play(this)
```

**Control:**
- `HXMusic.pause()` — Pause
- `HXMusic.resume(this)` — Resume
- `HXMusic.stop()` — Stop all
- `HXMusic.isPlaying()` — Boolean
- `HXMusic.getPosition()` / `HXMusic.setPosition(0)` — Position
- `HXMusic.setListener(this)` — HXMusicListener
- `HXMusic.getStatus()` — Status string
- `HXMusic.enable(true)` — Enable/disable
- `HXMusic.logging(true)` — Log output
- `HXMusic.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 backgrounded
- `onResume()` → `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:**
```kotlin
HXSound.sound()
    .load(R.raw.my_sound_effect)  // [REQUIRED]
    .looped(true)                 // [OPTIONAL]
    .play(this)                   // [REQUIRED]
```

**Control:**
- `HXSound.pause()` — Pause looping sounds
- `HXSound.resume()` — Resume
- `HXSound.load()` — Pre-load resources
- `HXSound.engines(2)` — Multiple sound engines (API 9–10)
- `HXSound.enable(true)` — Enable/disable
- `HXSound.reinitialize(this)` — Re-init (API 9–10)
- `HXSound.logging(true)` — Log output
- `HXSound.clear()` — Clear when no longer needed

## Module

Add `core:audio` dependency. Audio is provided via `hxaudio-v331.aar` in the audio module.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.