Commit Graph
100 Commits
Author SHA1 Message Date
Geoffrey D. Bennett 1615580de6 Add const to get*elem*() char* function arguments 2024-05-10 22:25:43 +09:30
Geoffrey D. Bennett 5526aa2f54 Fix link from FAQ.md to INSTALL.md
Fixes: #116.
2024-04-15 13:44:59 +09:30
Geoffrey D. Bennett 4ce2565b90 Add peak value display to the level meters 2024-04-11 22:47:48 +09:30
Geoffrey D. Bennett 909d3618b3 Use snprintf() in widget-gain.c when printing floats 2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 1fa964d348 Add peak display to the level meters 2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 159b3340eb Move level meter fields out of struct alsa_card
Create a levels struct managed inside window-levels.c.
2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett 5fb3191124 Fix up deb and RPM package description & add docs
# Conflicts:
#	.github/workflows/build-debian-package.yml
2024-04-11 21:24:27 +09:30
Geoffrey D. Bennett cc6853f541 Make flatpak build faster 2024-04-11 21:24:04 +09:30
Geoffrey D. Bennett 5d77207b66 Download and include scarlett2 firmware in flatpak
Fixes: #112.
2024-04-11 21:23:49 +09:30
Geoffrey D. Bennett a940db51c2 Add -fPIE and -pie build flags to fix flatpak build under Fedora 2024-04-11 18:13:21 +09:30
Geoffrey D. Bennett 92f9d5db8e Switch to embedded SVG icons
Make the icons independent of the desktop theme so they always look
good.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett af97b72b12 Update widget-boolean to cache the icon widgets 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 3f7a4c2063 Allow for boolean controls that are backwards
Gen 1 has playback controls (0 = off, 1 = on), not mute controls
(0 = not muted, 1 = muted) like the Gen 2+ do.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 111ec1154d Add support for volatile buttons to widget-boolean.c
Will be used by Gen 1 support.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett db0929bd08 Search $PATH and /usr/sbin for alsactl
The path to alsactl was previously hardcoded because some distros put
it in /usr/sbin but don't include that directory in $PATH.
Unfortunately other distros put alsactl elsewhere. Let's search $PATH
and /usr/sbin to cater for both.

Fixes #101.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 2ddede4d3f Override focus and colour CSS button styles
Set all button focus outline properties and set the colour and filter
on fixed buttons so more theme styles are overridden.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 0e227e1e07 Fix Sample Rate button to be insensitive 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 1d2ac0fd5c Add Arch package dependency 2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett 05e9d9e0a2 Fix widget-boolean.c to free data on button destruction 2024-03-31 03:17:35 +10:30
Geoffrey D. Bennett c57e4eb2a4 Move 4th Gen Solo 48V switch above the Air switch
Fixes #107.
2024-03-28 13:15:21 +10:30
Geoffrey D. Bennett feba2f4520 Update documentation for Scarlett 4th Gen and Vocaster 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 16e3a25f76 Update About dialog 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett be1f9763e1 Add firmware info to the INSTALL.md Prerequisites section 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 605df45b2f Prompt for firmware update if in MSD Mode and an update is available 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 984133f61d Store the best_firmware_version in struct alsa_card 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 6e40b8d9ed Add initial support for the Vocaster One and Two 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 607b002985 Update gain widget to show no decimal places for scale > 0.5
The 4th Gen input gain control scale is 69/70 which is close enough to
1 that we don't need to display any decimal places.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 0fae084ccb Display "+" before positive dB values in the gain widget 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett f00de1bd25 Add display of sample rate 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 96b4ec8259 Add gtk_widget_remove_css_classes_by_prefix() helper 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 2b664c446b Add missing static to populate_submenu() in menu.c 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 486c40048b Make window-helper.c close the window when Esc is pressed
Fixes #102.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 84ad0484f9 Reduce GtkDial circle brightness
Provides better contrast between dials in the sea of mixer knobs.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett b9549eb58e If there's an MSD control, add a reboot control too 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett b06b19e2a8 Don't show empty rows in levels window
If a port category has no ports, skip that row. 4th Gen has a DSP port
category that does not exist in previous generations.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 4c2a5ab12a Add 4th Gen Solo, 2i2, and 4i4 demo files 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 8b16bbdaed Make gain widget dB numbers smaller 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 7e712dece4 Don't set transient on modal window
Doesn't work on Ubuntu 22.04 GNOME when the parent goes away.
2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 52424dd067 Remove fixed/mentioned-elsewhere issues from USAGE.md 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett fdf8c50413 Update OpenSUSE and Ubuntu package dependencies 2024-03-24 22:40:11 +10:30
Geoffrey D. Bennett 9026eb76c5 Add support for firmware update 2024-03-24 17:06:17 +10:30
Geoffrey D. Bennett c9441b2591 Move -lm into LDFLAGS 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett b4fc332f0a Retrieve and store the device USB PID 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett 9544635e30 Add support for config reset 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett e95cbff3d5 Don't export alsa_cards from alsa.c 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett 05006284c6 Retrieve and store the device serial number 2024-03-12 01:43:07 +10:30
Geoffrey D. Bennett c90fbdc3d1 CSS fixes for buttons
Make non-toggle buttons brighter.
Make disabled glow match the dimmer text colour.
Don't put an opacity filter over status buttons.
2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 2137000d05 Add red focus outline to GtkDial 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett b02ad32d5a Fix GtkDial to redraw on notify::sensitive signal 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 7a7e08d4eb Fix GtkDial to not redraw the dial if the set value doesn't change 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 22a2aa2ad6 Add routing group tooltips 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 8c06e7aff7 Update the gain widget to support updating direct monitor mix controls
The 4th Gen Solo and 2i2 have controls to set custom Mix A/B gains
when Direct Monitor is enabled. Update those controls when the Mix A/B
gains are updated so that they are remembered.
2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett b9af5dfaf3 Prefix CSS styles so they don't apply to other windows
The custom button styles were erroneously applying to the File
windows; prefix them with ".window-frame" so they only apply to our
windows.
2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 3048b43b9a Add colour to GtkDial level meters 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett a26f607a8b Fix GtkDial to not recreate the cairo patterns on every draw 2024-02-20 23:38:49 +10:30
Geoffrey D. Bennett 1815f61280 Allow GtkDial to shrink more and reduce slider thickness 2024-02-20 23:28:31 +10:30
Geoffrey D. Bennett eaf73c280b Remove struct dial_properties; cache values in struct _GtkDial 2024-02-20 23:28:29 +10:30
Geoffrey D. Bennett 24a79963ba Use GtkDial off_db (deadband) for level meters
Set HW Output level meters deadband to -55dB, others to -45dB to match
the 4th Gen hardware level meters.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 1cc6c64c04 Add off_db (deadband) to GtkDial for quiet signals
Add an optional deadband at the bottom of the GtkDial so that very
quiet signals can be squashed into the first 1% of the dial. This will
be used to make the level meters more realistic.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 17b39efee0 Add 4th Gen Solo Mix switch 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 1c2d966763 Add GtkDial:can_control property
If the dial can't be controlled, it shouldn't be dimmed when it's not
sensitive.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 72d45a0987 Add draw_slider() to remove some common code from dial_snapshot() 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 9fc4c7c6e1 Use GtkTextView instead of GtkLabel in startup big_label() 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 4b340b4d4c Add CSS for buttons that get dimmer when checked 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett f40a1c986d Update about, etc. messages to include Gen 4/Clarett 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 793523b0a7 Add some red and grey 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett eae7cdc204 Remove now-unused widget-combo 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett e0e591db3e Update 3rd Gen Solo Direct Monitor control to match 4th Gen 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett b8ca52e7f2 Add power status control for 4th Gen 4i4 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett b912ccbf9c Add 4th Gen Solo/2i2 Direct Monitor controls 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 1411ff2c3b Switch Clock Source to widget-drop-down 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett bc9d8867f3 Add widget-drop-down for Air 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett ade852163b Add CSS classes to controls and add more colour 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 1caa75a7d2 Move 4th Gen Solo Air control up to be next to Inst control 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 56054c2634 Rewrite choose_line_colour() to work with a dark background
Use HSL with fixed saturation/lightness, and a hue based on the sink
index.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 36f724c66c Use CSS to set dark colour scheme 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett d0b7c086ca Remove "Analogue" from small Gen 3 device input labels 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 54b99aca29 Move label into boolean controls and use button state to show status
Rather than having a label "Air" and the button toggle between "Off"
and "On", have the button just be "Air" and no separate label.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 099e50b91e Remove bool_text from struct alsa_elem
Store the text in the boolean/dual widget private data.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett e655ee39ce Make GtkDial dimmer if insensitive 2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett 7c44f15428 Make GtkDial look better 2024-02-20 23:26:09 +10:30
Geoffrey D. Bennett df5d0960dd Add support for piecewise linear interpolation taper to GtkDial
This commit adds support for piecewise linear interpolation tapers to
GtkDial and the gain widget so that the 4th Gen 4i4 volume knob taper
can be modelled correctly.
2024-02-11 21:46:22 +10:30
Geoffrey D. Bennett 492c348897 Add configurable taper to GtkDial
The taper was previously set to a log function which matched the
Clarett volume knob. Add linear option to match the Scarlett 4th Gen
input gain knobs and hardware level meters.
2024-02-08 19:04:53 +10:30
Geoffrey D. Bennett 189b9ff6f6 Move valp clamp and scale from calc_valp_log() to calc_valp() 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett a77cb0e258 Remove inline from functions in gtkdial.c 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 64ca9f78da Fix typo range->dial in gtkdial.[ch] 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett d91c9d5687 Add page argument to gtk_dial_new_with_range()
Make gain widget page_incr 3dB.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 1164845b3c Allow for continuous dials
Update gtk_dial_new_with_range() to set round_digits to -1 if step is
zero.

Update create_levels_controls() to set step to zero.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett e40ce4d5ad Fix gtk_dial_new_with_range() to use calculated round_digits 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett fcdbc60f16 Add scale to widget-gain.c struct gain 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 3740d7ee2d Fix GtkDial:zero_db property comment 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 28604f08a3 Reformat gtkdial.c to match rest of code 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett b646bc92cc Remove irrelevant GDK_AVAILABLE_IN_ALL from gtkdial.h
GDK_AVAILABLE_IN_ALL is for core GDK/GTK classes, not user-defined
ones.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 9587e2f494 Remove unused guint8 and gsize from gtkdial.c 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 2115a26d9d Remove unused GtkDialFormatValueFunc from gtkdial.h 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett b2823e79be Bump copyright year 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett 4a123f5df6 Simplify GtkDial calculations 2024-02-08 18:07:44 +10:30
Geoffrey D. Bennett bd8f812e01 Fix widget-combo to check if the alsa elem is writable 2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett 6923a3ddb0 Don't round level meter values passed to GtkDial 2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett 20c4ff5559 Display -inf when volume/gain controls are at zero/off 2024-02-05 20:04:58 +10:30