| 711 | } |
| 712 | |
| 713 | static void |
| 714 | audio_refresh_list_row_ui( |
| 715 | GtkTreeModel *tm, |
| 716 | GtkTreeIter *ti, |
| 717 | signal_user_data_t *ud, |
| 718 | const GhbValue *settings) |
| 719 | { |
| 720 | GtkTreeIter cti; |
| 721 | char *info_src, *info_src_2; |
| 722 | char *info_dst, *info_dst_2; |
| 723 | |
| 724 | |
| 725 | info_src_2 = NULL; |
| 726 | info_dst_2 = NULL; |
| 727 | |
| 728 | const gchar *s_track, *s_track_name; |
| 729 | gchar *s_drc, *s_gain, *s_br_quality, *s_sr; |
| 730 | gdouble drc, gain; |
| 731 | hb_audio_config_t *aconfig; |
| 732 | int track, sr; |
| 733 | int title_id, titleindex; |
| 734 | const hb_title_t *title; |
| 735 | const hb_encoder_t *encoder; |
| 736 | |
| 737 | title_id = ghb_dict_get_int(ud->settings, "title"); |
| 738 | title = ghb_lookup_title(title_id, &titleindex); |
| 739 | track = ghb_dict_get_int(settings, "Track"); |
| 740 | aconfig = ghb_get_audio_info(title, track); |
| 741 | if (aconfig == NULL) |
| 742 | { |
| 743 | return; |
| 744 | } |
| 745 | |
| 746 | |
| 747 | s_track = aconfig->lang.description; |
| 748 | encoder = ghb_settings_audio_encoder(settings, "Encoder"); |
| 749 | |
| 750 | gboolean qe = ghb_audio_quality_enabled(settings); |
| 751 | double quality = ghb_dict_get_double(settings, "Quality"); |
| 752 | int bitrate = ghb_dict_get_int(settings, "Bitrate"); |
| 753 | if (qe && quality != HB_INVALID_AUDIO_QUALITY) |
| 754 | { |
| 755 | char *tmp = ghb_format_quality(_("Quality: "), |
| 756 | encoder->codec, quality); |
| 757 | s_br_quality = g_strdup_printf("%s\n", tmp); |
| 758 | g_free(tmp); |
| 759 | } |
| 760 | else if (bitrate > 0) |
| 761 | { |
| 762 | s_br_quality = g_strdup_printf(_("Bitrate: %dkbps\n"), bitrate); |
| 763 | } |
| 764 | else |
| 765 | { |
| 766 | s_br_quality = g_strdup(""); |
| 767 | } |
| 768 | |
| 769 | sr = ghb_dict_get_int(settings, "Samplerate"); |
| 770 | if (sr == 0) |
no test coverage detected