# Pygame's unreliable audio duration
my_sound = pygame.mixer.Sound('my_song.mp3')
total_length = my_sound.get_length() # reliable only for uncompressed WAV!Sound.get_length() works correctly only for WAV; MP3/OGG/FLAC return nonsense.| Component | Function | Size | Total |
|---|---|---|---|
| ffplay.exe | playback core | ≈80MB | ≥160MB |
| ffprobe.exe | metadata probe | ≈80MB | |
| ffmpeg.exe | converter | ≈80MB | ≥240MB |
Seven technical breakthroughs
pip install ap_dsfrom ap_ds import AudioLibrary
lib = AudioLibrary()
aid = lib.play_from_file("music.mp3")
lib.pause_audio(aid)
lib.seek_audio(aid, 30.5)
duration = lib.stop_audio(aid)aid1 = lib.play_from_file("song1.mp3")
recordings = lib.get_dap_recordings()
lib.save_dap_to_json("my_playlist.ap-ds-dap")Effective date: 2026-01-23 · Project home: https://www.apds.top
1.1 Basic freedom
Run, copy, study, modify, distribute, integrate, commercial use (including product integration / cloud services / selling / internal use).
1.2 Source code guarantee: full readable source provided; modified versions may be distributed in source or binary form.
2.1 Attribution & source notice
Retain original copyright; prominently display:
“Based on DVS audio library (ap_ds) v[version] original author: Dvs (DvsXT) project page: https://www.apds.top”
Modified versions must add a statement: unofficial version, maintainer is responsible.
2.2 Brand protection (strict)
❌ You may NOT name your modified version “ap_ds” or “DVS audio library”, nor imply continuity.
✅ You MUST use an independent brand and distinct logo.
2.3 Modified version quality pledge: clearly state changes, provide support, do not mislead users.
2.4 Prohibited illegal use
License last updated: 2026-01-23 · Maintainer: Dvs (DvsXT)
Q: Can a company integrate it in commercial products?
Q: Can I modify and redistribute it?
Q: Do I have to open‑source my modifications?
Q: Do I need to pay for cloud service usage?
Q: What if I get sued for patent infringement?
Q: Why such strict brand protection?
me@dvsyun.top or dvs6666@163.com · response within 7 working days
GitHub Issues · docs at official site · emergency email
Website: https://www.apds.top (root domain)
PyPI: https://pypi.org/project/ap_ds/
Developer: Dvs (DvsXT)