413 Commits

Author SHA1 Message Date
Eric Van Albert 9e97c609a3 Merge pull request #131 from cywang117/prevent-sleep
Prevent system/display sleep while Radiance is running
2026-03-26 13:20:38 -04:00
Christina Ying Wang 61e1c6e189 Prevent system/display sleep while Radiance is running
Uses the keepawake crate to prevent both display and system idle sleep
for the lifetime of the app.

Change-type: patch
Signed-off-by: Christina Ying Wang <cywang117@outlook.com>
2026-02-12 10:35:15 -08:00
Eric Van Albert 3088f980f6 Merge pull request #130 from cywang117/audio-input-device-selector
Add audio input device selector
2026-02-11 16:30:08 -05:00
Eric Van Albert 092c066747 Merge pull request #129 from zbanks/dependabot/cargo/bytes-1.11.1
Bump bytes from 1.11.0 to 1.11.1
2026-02-11 16:11:55 -05:00
Christina Ying Wang b3747b4bf9 Add audio input device selector
Add a ComboBox in the top bar to select the audio input device at
runtime. Users with USB audio interfaces or multiple input devices
can now switch without changing their OS default prior to launching the app.

- Add selected_device_name field and switch_device()/
  available_input_devices()/selected_device_name() methods to Mir
- Refactor audio_input() to accept an optional device name
- Add "Audio input:" ComboBox in the top bar after latency compensation
- Cache the device list to avoid per-frame CoreAudio enumeration,
  refresh on ComboBox click to pick up newly connected devices

Signed-off-by: Christina Ying Wang <cywang117@outlook.com>
2026-02-10 21:09:22 -08:00
Christina Ying Wang 83af607354 Support multi-channel audio input devices
Replace the hardcoded 1/2-channel match arms with a generic N-channel
mixdown to mono, allowing devices like the Scarlett 2i2 (which reports
4 input channels) to work. Also silence the noisy "buffer full" log
message which fires every time the audio callback outpaces UI polling.
This log is expected and harmless

Signed-off-by: Christina Ying Wang <cywang117@outlook.com>
2026-02-10 21:08:45 -08:00
Christina Ying Wang c5ee5bad20 Upgrade cpal to 0.17.1, fix cfg guards for mpv feature
cpal 0.17.0 fixes CoreAudio segfaults when enumerating devices on
macOS, which caused crashes on systems with certain audio interfaces
(e.g. Scarlett 2i2). Also adapts to API changes: SampleRate is now a
u32 type alias instead of a tuple struct.

Adds missing #[cfg(feature = "mpv")] guards in library.rs so the
project can compile with --no-default-features.

Signed-off-by: Christina Ying Wang <cywang117@outlook.com>
2026-02-10 21:07:54 -08:00
dependabot[bot] c8ad7e1a7e Bump bytes from 1.11.0 to 1.11.1
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-version: 1.11.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-03 19:43:43 +00:00
Eric Van Albert 8e58f0e6e0 ...and update Cargo.lock 0.7.1 2026-01-11 18:54:24 -05:00
Eric Van Albert efd79dbf6a Update Cargo.toml to 0.7.1 2026-01-11 18:51:41 -05:00
Eric Van Albert 43b5debc07 Add ferris to library 2026-01-11 18:50:45 -05:00
Eric Van Albert a38ffa06a8 Add Cargo.lock to git 2026-01-11 18:50:32 -05:00
Eric Van Albert 0a4a3be36c Update GH action to actually create release 0.7.0 2025-12-18 23:13:04 -05:00
Eric Van Albert 3b56f58d55 Improve README 2025-12-18 23:02:18 -05:00
Eric Van Albert 3116f01d7f Prepare crate for publishing 2025-12-18 22:54:03 -05:00
Eric Van Albert 032223c056 Don't use exclusive mode on MacOS--it doesn't play nice with having the UI continue to run 2025-12-18 22:28:05 -05:00
Eric Van Albert 0b6db35b8b Only use can_draw on Linux 2025-12-18 22:03:06 -05:00
Eric Van Albert b3defdf8e3 More windows fixes: ignore can_draw in winit_output too 2025-12-18 21:46:58 -05:00
Eric Van Albert 0cf9d397ee Add icon with very specific sizes & bit depths (matching how VLC player does it) 2025-12-18 21:44:40 -05:00
Eric Van Albert fd8b1b30c4 GH actions fix 2025-12-18 19:42:08 -05:00
Eric Van Albert 456d373ca1 Add missing imagemagick dependency 2025-12-18 19:37:39 -05:00
Eric Van Albert 7acb166597 Try building imagemagick from source to fix ICO bugs 2025-12-18 19:32:33 -05:00
Eric Van Albert 265581786a put back convert instead of magick for gh runner 2025-12-17 18:50:00 -05:00
Eric Van Albert 82e2225fea more windows fixes :/ 2025-12-17 18:42:41 -05:00
Eric Van Albert a5cac90ac1 More windows fixes 2025-12-17 18:18:47 -05:00
Eric Van Albert 2e3dbf2637 Don't use exclusive on windows because winit stops rendering 2025-12-17 18:11:04 -05:00
Eric Van Albert 245a966861 Windows fixes 2025-12-17 18:03:20 -05:00
Eric Van Albert 6bb6fc56e4 Don't select custom library items if there is a matching non-custom one 2025-12-17 16:26:51 -05:00
Eric Van Albert c4ba0c8e4b Quick copy-edit pass over effect descriptions 2025-12-17 16:22:49 -05:00
Eric Van Albert 4986af64a1 Add 'Open library' button 2025-12-17 00:32:49 -05:00
Eric Van Albert 3280b96ade Add disconnected drop target below tiles 2025-12-16 22:45:22 -05:00
Eric Van Albert 7190a51a99 Don't consume scroll if no tiles in selection did anything with it 2025-12-16 22:17:45 -05:00
Eric Van Albert 0df11f3441 Add Applications folder to MacOS DMG 2025-12-16 21:11:40 -05:00
Eric Van Albert 740b55f44b Try to avoid having to request audio permission so many times 2025-12-16 21:05:31 -05:00
Eric Van Albert 431b4ce21d Add additional search paths for yt-dl on MacOS 2025-12-16 20:57:46 -05:00
Eric Van Albert f8bbc0d8ee Minor MacOS fixes 2025-12-15 23:27:16 -05:00
Eric Van Albert 80d4d13700 Small fixes for MacOS 2025-12-15 22:57:46 -05:00
Eric Van Albert 23e19e77aa Fix some more SRGB colors 2025-12-15 21:36:28 -05:00
Eric Van Albert 9f92a9e5fd Fix some srgb & premultiplied alpha bugs 2025-12-15 21:23:08 -05:00
Eric Van Albert bf6e1570a2 Add library toggle button 2025-12-15 15:32:13 -05:00
Eric Van Albert d15e7364e6 Add library 2025-12-15 15:06:27 -05:00
Eric Van Albert 0f59ab70fe Factor out library UI widget 2025-12-14 14:32:10 -05:00
Eric Van Albert 80ecce5850 Animate mosaic size changes for smoother insertion/deletion 2025-12-12 19:17:08 -05:00
Eric Van Albert fdc6d034d3 make dragging the auto-DJ easier by automatically selecting new nodes that are surrounded by the existing selection 2025-12-12 18:39:07 -05:00
Eric Van Albert 355452a996 tweaks to tiles (size, text) 2025-12-12 17:00:37 -05:00
Eric Van Albert 78e328e29c Fix scrollarea animation & other jank 2025-12-12 16:02:17 -05:00
Eric Van Albert c269e09bc3 Make mosaic scrollable (a little janky due to animation) 2025-12-11 20:51:11 -05:00
Eric Van Albert 6b69557801 Prevent segfault on exit 2025-12-11 16:09:42 -05:00
Eric Van Albert d4f45b279f Fix up MovieNode & expand its capabilities (webcams, etc. via config files) 2025-12-11 16:00:27 -05:00
Eric Van Albert 9ce22a0e4a Fix identity property of yuvrot 2025-12-11 13:30:11 -05:00