diff options
author | jstebbins <[email protected]> | 2011-04-05 20:46:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-04-05 20:46:35 +0000 |
commit | 6c75ac124c15e395e3e8b004a188d262d8d3b692 (patch) | |
tree | 504cb94a43220b8d144a0c8b98a87c604fc55ffa /gtk/src/queuehandler.c | |
parent | d54c2303fdf029738bfc198b011a8dff725635cf (diff) |
LinGui: add audio gain adjustment and create advanced audio dialog.
Gain, DRC, and Sample Rate are now in an advanced audio dialog.
This makes the audio tab less crowded and makes room for future
improvements.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3903 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 7fd6a82da..6b934c14e 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -523,9 +523,9 @@ audio_list_refresh(signal_user_data_t *ud) do { const gchar *track, *codec, *br, *sr, *mix; - gchar *s_drc; + gchar *s_drc, *s_gain; gint itrack; - gdouble drc; + gdouble drc, gain; GValue *asettings; audio_list = ghb_settings_get_value(ud->settings, "audio_list"); @@ -539,6 +539,8 @@ audio_list_refresh(signal_user_data_t *ud) br = ghb_settings_combo_option(asettings, "AudioBitrate"); sr = ghb_settings_combo_option(asettings, "AudioSamplerate"); mix = ghb_settings_combo_option(asettings, "AudioMixdown"); + gain = ghb_settings_get_double(asettings, "AudioTrackGain"); + s_gain = g_strdup_printf("%.fdB", gain); drc = ghb_settings_get_double(asettings, "AudioTrackDRCSlider"); if (drc < 1.0) @@ -553,9 +555,11 @@ audio_list_refresh(signal_user_data_t *ud) 2, br, 3, sr, 4, mix, - 5, s_drc, + 5, s_gain, + 6, s_drc, -1); g_free(s_drc); + g_free(s_gain); done = !gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); row++; } while (!done); |