Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

a simple BitPerfect player

License

NotificationsYou must be signed in to change notification settings

yui0/aplay-

Repository files navigation

GitHub Repo starsGitHub code size in bytesLines of codeGitHub release (latest by date)MIT License

🎧Enjoy BitPerfect audio playback with simplicity and precision!

Logo

💿 Supported File Formats

aplay+ supports a variety of popular audio formats:

  • 🌟FLAC: High-quality lossless compression
  • 🌊WAV: Uncompressed audio with crystal-clear quality
  • 🎶MP3: The most commonly used compressed format
  • 🎵Ogg Vorbis: Great compression with excellent sound
  • 📱AAC (mp4/m4a): Widely used in iPhones and YouTube

🔧 How to build

Build Online

Build Locally

  1. Install required libraries:
# dnf install alsa-lib-devel$ make
  1. Clone the repository and build:
git clone https://github.com/yui0/aplay-.gitcd aplay-make

🌸 How to use

Basic Commands

$ ./aplay+ -hUsage: ./aplay+ [options] dirOptions:-h                 Print thishelp message-d<device name>   Specify ALSA device [e.g., default hw:0,0 plughw:0,0...]-f                 Use 32-bit floating-point playback-r                 Recursively search directories-x                 Enable random playback-s<regexp>        Search files with a regex-t<ext type>      Specify filetype (e.g., flac, mp3, wma...)-p                 Optimizefor Linux platforms

Examples

  • 🔀Random playback:
    $ ./aplay+ -rx.
  • 🎤Search for a specific artist:
    $ ./aplay+ -rx -d hw:7,0 /Music/ -s ZARD
  • 🎹Exclude instrumentals from playback:
    $ ./aplay+ -rfx -d hw:7,0 /Music/ -s'^(?!.*nstrumental).*$'

🌟 Linux Optimization Settings

🚀 Optimize Disk I/O

Add the following to yoursysctl.conf:

vm.dirty_ratio = 40vm.dirty_background_ratio = 10vm.dirty_expire_centisecs = 3000vm.dirty_writeback_centisecs = 500#dev.hpet.max-user-freq = 3072vm.overcommit_memory = 1

Apply changes:

sysctl -p

⚙️ Adjust Scheduler Settings

Optimize SSDs and HDDs with the following script:

#!/bin/sh#cat /sys/block/sd*/queue/schedulerforFILEin /sys/block/sd*/queue/schedulerdo[-f$FILE ]||continueecho -n none>$FILEdone

💨 Set CPU Performance Mode

Use this script to switch CPU governor to "performance":

#!/bin/sh#cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorforCPUFREQin /sys/devices/system/cpu/cpu*/cpufreq/scaling_governordo[-f$CPUFREQ ]||continueecho -n performance>$CPUFREQdone

I/O scheduler

# scheduler for non rotational, SSDACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="none"# scheduler for rotational, HDDACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"

fstrim -v /

Timer

#cat /sys/devices/system/clocksource/clocksource0/current_clocksourceecho tsc > /sys/devices/system/clocksource/clocksource0/current_clocksource

ulimit -a

📖 References

🎵Experience perfect audio playback with aplay+! Start your music journey today!


[8]ページ先頭

©2009-2025 Movatter.jp