From 32f4966e8d3e824619fabbd225ee8e74b62be7c7 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Thu, 20 Mar 2025 15:12:37 -0300 Subject: Add a button to select audio output --- gui/radio-receiver.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/radio-receiver.c') diff --git a/gui/radio-receiver.c b/gui/radio-receiver.c index 136b45f..defd419 100644 --- a/gui/radio-receiver.c +++ b/gui/radio-receiver.c @@ -61,6 +61,8 @@ extern void fp_set_dimensions(int x, int y, int width, int height); extern void fm_set_dimensions(int x, int y, int width, int height); [[clang::import_module("toggle-widget")]] [[clang::import_name("set-dimensions")]] extern void mode_set_dimensions(int x, int y, int width, int height); +[[clang::import_module("audio-device-widget")]] [[clang::import_name("set-dimensions")]] +extern void audio_device_set_dimensions(int x, int y, int width, int height); #define BACKGROUND_WIDTH 200 #define BACKGROUND_HEIGHT 100 @@ -79,6 +81,7 @@ void init() { vp_set_dimensions(base_x + 100 - 40, base_y + 20, 20, 20); vm_set_dimensions(base_x + 120 - 40, base_y + 20, 20, 20); mode_set_dimensions(base_x + 100 - 100, base_y + 40, 100, 20); + audio_device_set_dimensions(base_x, base_y + 60, 200, 20); } void render(int mouseX, int mouseY, float delta) { -- cgit 1.4.1