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

Convert audio-output-type to an enum

parent db411c5c
...@@ -56,10 +56,9 @@ ...@@ -56,10 +56,9 @@
<default>false</default> <default>false</default>
<_summary>Whether to enable debug for the playback engine</_summary> <_summary>Whether to enable debug for the playback engine</_summary>
</key> </key>
<key name="audio-output-type" type="i"> <key name="audio-output-type" enum="org.gnome.totem.BvwAudioOutType">
<default>0</default> <default>'stereo'</default>
<_summary>Type of audio output to use</_summary> <_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>
<key name="visual-quality" type="i"> <key name="visual-quality" type="i">
<default>0</default> <default>0</default>
......
...@@ -3470,7 +3470,7 @@ bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw, ...@@ -3470,7 +3470,7 @@ bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw,
return; return;
bvw->priv->speakersetup = type; 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); set_audio_filter (bvw);
} }
...@@ -7097,7 +7097,7 @@ bacon_video_widget_new (int width, int height, ...@@ -7097,7 +7097,7 @@ bacon_video_widget_new (int width, int height,
} }
/* audio out, if any */ /* 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 && if (value > 0 &&
(type != BVW_USE_TYPE_METADATA && type != BVW_USE_TYPE_CAPTURE)) { (type != BVW_USE_TYPE_METADATA && type != BVW_USE_TYPE_CAPTURE)) {
bvw->priv->speakersetup = value; 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