return 0;
}
-gint
-ghb_pref_acount(GValue *settings)
-{
- GValue *acodec;
- acodec = ghb_settings_get_value(settings, "pref_audio_codec");
- return ghb_array_len(acodec);
-}
-
-gint
-ghb_pref_acodec(GValue *settings, gint index)
-{
- GValue *acodec;
- gint count;
-
- acodec = ghb_settings_get_value(settings, "pref_audio_codec");
- count = ghb_array_len(acodec);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(acodec, index));
-}
-
-gint
-ghb_pref_bitrate(GValue *settings, gint index)
-{
- GValue *bitrate;
- gint count;
-
- bitrate = ghb_settings_get_value(settings, "pref_audio_bitrate");
- count = ghb_array_len(bitrate);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(bitrate, index));
-}
-
-gint
-ghb_pref_rate(GValue *settings, gint index)
-{
- GValue *rate;
- gint count;
-
- rate = ghb_settings_get_value(settings, "pref_audio_rate");
- count = ghb_array_len(rate);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(rate, index));
-}
-
-gint
-ghb_pref_mix(GValue *settings, gint index)
-{
- GValue *mix;
- gint count;
-
- mix = ghb_settings_get_value(settings, "pref_audio_mix");
- count = ghb_array_len(mix);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(mix, index));
-}
-
-gdouble
-ghb_pref_drc(GValue *settings, gint index)
-{
- GValue *drc;
- gint count;
-
- drc = ghb_settings_get_value(settings, "pref_audio_drc");
- count = ghb_array_len(drc);
- if (index >= count)
- return 0;
- return ghb_value_double(ghb_array_get_nth(drc, index));
-}
-