- Packaged builds: keep Qt6Quick/Qml (the FFmpeg media plugin links them); pruning them disabled all playback in the AppImage/tarball - Visualizer decodes each track ahead (QAudioDecoder) and follows the playback position: works with mpv and Qt, no PipeWire monitor needed for local files - Packaged Linux builds default to the self-contained Qt engine - Last.fm: built-in app key, browser login returns to a 127.0.0.1 callback; now-playing is re-sent on resume - Export all playlists (folder, file type, replace/skip/number) - Unknown/burned CDs: CD placeholder art, no online lookups - install.sh: --uninstall, --purge, requirement checks, launch log - CI self-tests now play a file and assert decoding + visualizer output Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7imThHV9BMkG24GaxPDeq
17 lines
596 B
Python
17 lines
596 B
Python
"""Write a short WAV with kick drums + tones for CI playback self-tests."""
|
|
import sys
|
|
import wave
|
|
|
|
import numpy as np
|
|
|
|
sr, secs = 44100, 12
|
|
t = np.arange(sr * secs) / sr
|
|
kick = 0.9 * np.sin(2 * np.pi * 52 * t) * np.exp(-np.mod(t, 0.5) * 10)
|
|
pad = 0.25 * np.sin(2 * np.pi * 220 * t) + 0.15 * np.sin(2 * np.pi * 330 * t + 2 * np.sin(2 * np.pi * 3 * t))
|
|
x = np.clip(kick + pad, -1, 1)
|
|
pcm = (x * 30000).astype("<i2")
|
|
with wave.open(sys.argv[1] if len(sys.argv) > 1 else "selftest.wav", "wb") as w:
|
|
w.setnchannels(1)
|
|
w.setsampwidth(2)
|
|
w.setframerate(sr)
|
|
w.writeframes(pcm.tobytes())
|