Some new cool features#147
Open
DavidBalishyan wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What have I added?
FFmpeg audio fallback
If raylib can't open a file natively, we pipe it through
ffmpeg -f wavand load the result. Unlocks M4A, AAC, WMA, AIFF, APE, OPUS - anything FFmpeg can decode. Extension whitelist prevents freezes on random non-audio drops. All FFmpeg calls use-nostdin. A brief "Loading..." indicator flashes during the blocking calls so the app doesn't look frozen.Waveform timeline
Full-width waveform preview of the current track in the timeline area. Loads lazily (only on track switch), falls back to FFmpeg for unsupported formats. Timeline is now draggable. Current time follows the cursor; remaining time shown in the bottom-right corner.
Cover art thumbnails
Embedded album art displayed as thumbnails in the track panel via
ffmpeg -frames:v 1. Clean placeholder if no cover exists.Playlist management
Save as M3U, load M3Us by drag-and-drop, add files via dialog, remove/reorder with hover buttons. Deferred action loop keeps index accounting correct when removing the current track.
3-band equalizer
Low/Mid/High sliders below the track panel. Runs in the audio callback via 1-pole filters. FFT visualization reflects the EQ. Reset button restores neutrality.
Crossfade and auto-advance
Tracks crossfade over 3 seconds. Auto-advance on end. Repeat modes (none/one/all) via R, shuffle via S, prev/next with arrow keys. Panel clicks use the same crossfade path as next/prev.
Beat detection
Energy-threshold detector in
fft_analyze()- rolling spectral energy history, fires when current is 50% above baseline. White flash overlay on every beat.Visualization modes
V cycles bars / circular / waveform. Mode name shown in corner for 1.5s.
Now-playing banner
Track name shown at the top of the preview for 2.5s on every switch. Window title also updates.
Track durations
Each track row shows its formatted length (e.g. "4:32").
Keyboard shortcut overlay
H toggles a centered list of all keybindings. Uses the built-in raylib font so it's crisp.
Tested only on linux x86_64