| 394 | } |
| 395 | |
| 396 | static void |
| 397 | sanitize_audio_tracks (signal_user_data_t *ud) |
| 398 | { |
| 399 | int ii; |
| 400 | GhbValue *alist = ghb_get_job_audio_list(ud->settings); |
| 401 | int count = ghb_array_len(alist); |
| 402 | |
| 403 | for (ii = 0; ii < count; ii++) |
| 404 | { |
| 405 | GhbValue *asettings = ghb_array_get(alist, ii); |
| 406 | ghb_sanitize_audio_settings(ud->settings, asettings); |
| 407 | } |
| 408 | |
| 409 | GhbValue *asettings = audio_get_selected_settings(ud, NULL); |
| 410 | if (asettings != NULL) |
| 411 | { |
| 412 | ghb_ui_update("AudioEncoder", |
| 413 | ghb_dict_get_value(asettings, "Encoder")); |
| 414 | ghb_ui_update("AudioBitrate", |
| 415 | ghb_dict_get_value(asettings, "Bitrate")); |
| 416 | gdouble quality = get_ui_quality(asettings); |
| 417 | ghb_ui_update("AudioTrackQualityX", ghb_double_value(quality)); |
| 418 | ghb_ui_update("AudioSamplerate", |
| 419 | ghb_dict_get_value(asettings, "Samplerate")); |
| 420 | ghb_ui_update("AudioMixdown", |
| 421 | ghb_dict_get_value(asettings, "Mixdown")); |
| 422 | ghb_ui_update("AudioTrackDRCSlider", |
| 423 | ghb_dict_get_value(asettings, "DRC")); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | static char * get_drc_string(gdouble drc) |
| 428 | { |
no test coverage detected