Skip to content

Some new cool features#147

Open
DavidBalishyan wants to merge 1 commit into
tsoding:masterfrom
DavidBalishyan:master
Open

Some new cool features#147
DavidBalishyan wants to merge 1 commit into
tsoding:masterfrom
DavidBalishyan:master

Conversation

@DavidBalishyan

Copy link
Copy Markdown

What have I added?

FFmpeg audio fallback

If raylib can't open a file natively, we pipe it through ffmpeg -f wav and 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant