102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
gui_tab_audio.c
Go to the documentation of this file.
1#include "gui_internal.h"
2
3static const char *TOOLTIP_MSS_SAMPLE_GAIN = "MSS Sample Gain. Default: 1.0.";
4static const char *TOOLTIP_MSS_SAMPLE_PREEMPHASIS = "MSS Sample Preemphasis. Default: "
5 "0.0.";
6
8 if (!begin_tab_settings_table(ctx, "##audio_settings_table", DTTR_CONFIG_UI_INPUT_W)) {
9 return;
10 }
11
13 ctx,
14 "MSS Sample Gain",
15 "##mss_sample_gain",
16 &state->config.mss_sample_gain,
18 FIELD_LABEL_STATE(state, mss_sample_gain)
19 );
21 ctx,
22 "MSS Sample Preemphasis",
23 "##mss_sample_preemphasis",
24 &state->config.mss_sample_preemphasis,
26 FIELD_LABEL_STATE(state, mss_sample_preemphasis)
27 );
29}
const DTTR_BackendState * state
void void * ctx
bool labeled_input_float(const DTTR_ImGuiDialogContext *ctx, const char *label, const char *id, float *value, const char *tooltip, config_label_state label_state)
void end_settings_table()
#define FIELD_LABEL_STATE(state, field)
#define DTTR_CONFIG_UI_INPUT_W
bool begin_tab_settings_table(const DTTR_ImGuiDialogContext *ctx, const char *id, float input_width)
Definition gui_tabs.c:13
static const char * TOOLTIP_MSS_SAMPLE_PREEMPHASIS
static const char * TOOLTIP_MSS_SAMPLE_GAIN
void draw_audio_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)