Skip to content

michaelyxsun/NCAP

Repository files navigation

Native C Audio Player (NCAP)

A lightweight, minimal, and (hopefully) battery-saving audio player for Android, written in pure C.

Features

  • Play in background
  • Additional fine in-app volume control
  • Track specific volume
  • Optimization selection
  • Multiple operation modes
  • x86 support (unlikely)

Usage

Grant NCAP media access permissions (from app info in settings).

Place your audio tracks in the path specified by NCAP_DEFAULT_TRACK_PATH found in properties.h, which defaults to /sdcard/Music/NCAP-share, which assumes that /sdcard is your home directory. This directory can be changed (with caution).

NCAP sorts your tracks lexicographically, so prefix each track with a character according to the order in which the tracks should be played.

Please refrain from using non-ASCII file names, as the characters will not render (will show as ?) and NCAP may not find your file. If a track does not play, this may be the issue.

File Types

The following audio codecs have been tested to work with NCAP:

Codec Extension
Waveform Audio .wav
MP3 .mp3
MPEG-4 Audio .m4a
OPUS .opus
Free Lossless Audio Codec (FLAC) .flac
OGG .ogg

Please submit an issue if you encounter a codec that breaks.

Dependencies

  • raylib (tested on >=5.5)
  • FFmpeg >=7.0
    • libavutil
    • libavformat
    • libavcodec

Supported ABIs

See the supported ABIs page on the Android NDK documentation.

  • armeabi-v7a (ARM)
  • arm64-v8a (AArch64)
  • x86_64 (x86-64)

TODO: support x86 (libav compile issues)

Image

app screenshot

Notes

0.1.1

Version number and code were not updated and will still appear to be in version 0.1.0. If your app has an orange disk indicator when you touch the screen, you are in version 0.1.0, otherwise it is 0.1.1.

About

Native C Audio Player for Android

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors