Commit 90699ee4 authored by Philip Withnall's avatar Philip Withnall

Convert audio-output-type to an enum

parent db411c5c
......@@ -56,10 +56,9 @@
<default>false</default>
<_summary>Whether to enable debug for the playback engine</_summary>
</key>
<key name="audio-output-type" type="i">
<default>0</default>
<key name="audio-output-type" enum="org.gnome.totem.BvwAudioOutType">
<default>'stereo'</default>
<_summary>Type of audio output to use</_summary>
<_description>Type of audio output to use: "0" for stereo, "1" for 4-channel output, "2" for 5.0 channel output, "3" for 5.1 channel output, "4" for AC3 Passthrough.</_description>
</key>
<key name="visual-quality" type="i">
<default>0</default>
......
......@@ -3470,7 +3470,7 @@ bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw,
return;
bvw->priv->speakersetup = type;
g_settings_set_int (bvw->priv->settings, "audio-output-type", type);
g_settings_set_enum (bvw->priv->settings, "audio-output-type", type);
set_audio_filter (bvw);
}
......@@ -7097,7 +7097,7 @@ bacon_video_widget_new (int width, int height,
}
/* audio out, if any */
value = g_settings_get_int (bvw->priv->settings, "audio-output-type");
value = g_settings_get_enum (bvw->priv->settings, "audio-output-type");
if (value > 0 &&
(type != BVW_USE_TYPE_METADATA && type != BVW_USE_TYPE_CAPTURE)) {
bvw->priv->speakersetup = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment