Commit Graph

118 Commits

Author SHA1 Message Date
tyler b6942d8577 Refactor: extract platform abstraction for subprocess spawning
Move all Unix-specific syscalls (fork, execvp, waitpid, strerror, /tmp)
into a platform layer so the same spectrogram.c can target Windows
(CreateProcess) and WebAssembly (stubs). Key changes:

- src/platform.h: public API with spawn handle, error codes, path helpers
- src/platform_linux.c: fork/execvp implementation, /tmp, strerror
- src/platform_win32.c: CreateProcess implementation, temp dir lookup
- src/platform_web.c: stub implementations (no subprocess support on web)
- src/spectrogram.c: consume only platform.h; replace pid_t/fork/execvp
  with Platform_SpawnChild/WaitForChild; use Platform_GetTempDir() for
  /tmp path; replace strdup with malloc/memcpy for portability
- Build: add platform_*.c to gmake, Premake, and build_web.sh
2026-05-14 18:16:21 -07:00
tyler e42554e6fd Enable raylib 6 HiDPI/HighDPI support for proper font and UI scaling
Add FLAG_WINDOW_HIGHDPI to enable raylib's automatic framebuffer
scaling on HiDPI displays. Layout coordinates use logical screen size
only, so UI stays proportional to window size while text and graphics
render at full framebuffer resolution for crisp output on any monitor.

Also fix hardcoded pixel offsets in selection bounds rectangle to use
selScale consistently.
2026-05-14 17:01:15 -07:00
tyler 4331d010e5 Add incremental loading progress, auto-scaled amplitude, DPI-aware TTF fonts, and better file browser scaling
- Add incremental STFT processing with loading overlay and progress bar
- Add auto-scaling amplitude (max dB, max-40dB floor) for low-signal files
- Replace fixed bitmap text with TTF font scaled by window size for crisp rendering at any resolution
- Fix command-line file path resolution relative to original working directory
- Scale file browser dialog dimensions by GetUIScale() to prevent text overlap
- Disable ESC key closing the window
- Fix FFT size changes to restart STFT computation
2026-05-14 16:01:22 -07:00
tyler 9d0008ac2c Add FLAG_WINDOW_RESIZABLE, fullscreen button, and proportional UI scaling
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-15 15:40:17 -07:00
tyler da37cecb59 Add web build support with custom shell HTML
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-12 21:28:18 -07:00
tyler ecbbba36db Fix layout: proper spacing for labels and scrollbars, remove axis title text
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-11 22:15:25 -07:00
tyler b4c23d61a8 Add frequency zoom, scrollbars, dynamic layout that fills window
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-11 21:49:26 -07:00
tyler c0044c37da Simplify UI: fixed FFT 128 with synchrosqueezing always on, removed FFT slider and SQ checkbox
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-11 00:09:54 -07:00
tyler d11546d282 Fix synchrosqueezing: correct complex division sign and add noise threshold
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-10 23:44:37 -07:00
tyler 0bc30832be Implement synchrosqueezing transform for sharp spectrogram display
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-10 23:27:56 -07:00
tyler 5b2d8ddb33 Suppress INFO texture logs
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-04 21:21:18 -07:00
tyler b3eb2ea991 Fix playback auto-reset, add ffmpeg conversion, fix file browser Open button click
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-30 21:38:32 -07:00
tyler 5e7841fa76 Fix sidebar layout: sidebar on left (320px), spectrogram on right. SPACE toggles play/stop. dB floor triggers immediate redraw.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-30 21:07:47 -07:00
tyler 87183cbe7d Add sidebar UI with sliders, buttons, checkboxes. ESC clears selections instead of exiting
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-30 20:05:57 -07:00
tyler bbd476c389 Remove reassignment code - back to standard spectrogram
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-30 19:40:20 -07:00
tyler c00c665226 Implement reassignment method for sharp time-frequency localization
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 23:25:47 -07:00
tyler bca898516b Add configurable FFT size (512-8192), 75% overlap for smoother display
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 23:16:49 -07:00
tyler 10e7a68baa Fix zoom to cursor, trigger re-render on palette/dB changes, improve controls
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 23:10:16 -07:00
tyler 377ba3616a Fix texture caching, file browser segfault, and compiler warnings
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 22:42:22 -07:00
tyler 6355db4e03 Fix snprintf truncation warnings
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 22:29:12 -07:00
tyler 99ef486c5f Add file browser, zoom/pan controls, improved UI
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 22:06:13 -07:00
tyler c5234d5799 Add spectrogram viewer with FFT bandpass filter, file browser, zoom/pan controls
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 21:56:47 -07:00
Jeffery Myers b32f9edd5f use correct software define 2026-03-23 15:45:13 -07:00
Jeffery Myers cd3340ce57 build in the root, so that vscode can find the files 2026-02-25 13:54:12 -08:00
Jeffery Myers 4cf96e771f add info about software render target 2026-01-13 11:47:28 -08:00
Jeffery Myers 759d3ff61a better filters for game and app resources 2026-01-07 18:49:51 -08:00
Jeffery Myers 3f4dfdc483 remove exe from common launch commands and let each platform define it's own 2026-01-07 08:53:30 -08:00
Jeffery Myers c8e40f3845 Revise license section in README.md
Updated license information to reflect CC0 1.0.
2026-01-06 16:34:47 -08:00
Peter0x44 8853ece16a Update README.md 2026-01-06 23:18:43 +00:00
Jeffery Myers 75d4e7fc9f add debug task that does not regenerate the makefile 2025-12-11 09:52:03 -08:00
Jeffery Myers 31630dded8 add more clear description on how to get the template 2025-12-09 11:36:37 -08:00
Jeffery Myers c880765945 Add support for generating compile_commands.json (#39) 2025-12-04 08:23:23 -08:00
Peter0x44 e5415bcb6e Add rename folder step to all platform sections
Fixes #30
2025-12-03 05:31:26 +00:00
Peter0x44 a6c1b96d0a Add support for generating compile_commands.json
- Integrate premake-ecc module for generating compile_commands.json
- Add .clangd config pointing to build/ directory
- Add 'Generate compile_commands.json' task
- Run compile_commands generation automatically on build
2025-12-03 05:16:23 +00:00
Jeffery Myers acc91fd5a8 update windows premake to support visual studio 2026 2025-11-27 15:11:21 -08:00
Jeffery Myers 1861d659a5 tweaks to lib info 2025-11-20 15:47:24 -08:00
Jeffery Myers 562c3ba4d8 Add clarification on external library dependencies in README (#37) 2025-11-20 15:42:29 -08:00
Jeffery Myers 1f76eb6499 Fix compiling stages for Wayland (#38) 2025-11-20 15:40:22 -08:00
staruwos 371927cb86 Add generate step for Wayland protocols 2025-11-20 20:28:53 -03:00
staruwos feeb6e5975 Split X11 and Wayland compiler flags 2025-11-20 20:27:59 -03:00
Youness SBAI cf453b5601 Add clarification on external library dependencies in README 2025-11-20 19:36:37 +01:00
Jeffery Myers 0083bfbb1b Fixed case mismatch (#33) 2025-11-20 08:51:14 -08:00
Jeffery Myers a38599180e Fix tiny typo (#31) 2025-11-20 08:50:46 -08:00
Jeffery Myers f5a70d55de Merge branch 'main' of github.com:raylib-extras/raylib-quickstart 2025-11-18 09:13:52 -08:00
Jeffery Myers fa62bf5df2 don't include the external folder in the include dirs for the game app. 2025-11-18 09:13:38 -08:00
Jeffery Myers 7f8f6dd48b add support for wayland 2025-11-05 20:00:58 -08:00
Mohammed Saad 4c2696b69c fixed tiny typo 2025-10-24 13:11:10 +02:00
Jeffery Myers b2dc71485f Add support for Win32 backend and software rendering 2025-10-23 08:33:09 -07:00
Jeffery Myers c8fd6040ac add option to link static 2025-10-21 08:45:16 -07:00
Jeffery Myers f72253b545 Split glfw/rgfw into a new option, not two configs of the base option, should reduce target confusion.
Enable LTO on MSVC release builds.
2025-10-01 16:01:35 -07:00