diff cfg-mplayer.h @ 3279:d6ea11bed983

Commandline interface to ao_plugin updated according to mplayers complex parameter format and plugin pl_format finished (alpha code needs testing)
author anders
date Mon, 03 Dec 2001 14:05:02 +0000
parents 38344371432f
children cdd3f5ac06b2
line wrap: on
line diff
--- a/cfg-mplayer.h	Mon Dec 03 10:10:19 2001 +0000
+++ b/cfg-mplayer.h	Mon Dec 03 14:05:02 2001 +0000
@@ -78,6 +78,14 @@
 /* from dec_audio, currently used for ac3surround decoder only */
 extern int audio_output_channels;
 
+/* Options related to audio out plugins */
+struct config ao_plugin_conf[]={
+	{"list", &ao_plugin_cfg.plugin_list, CONF_TYPE_STRING, 0, 0, 0},
+	{"delay", &ao_plugin_cfg.pl_delay_len, CONF_TYPE_INT, CONF_MIN, 0, 0},
+	{"format", &ao_plugin_cfg.pl_format_type, CONF_TYPE_INT, CONF_MIN, 0, 0},
+	{NULL, NULL, 0, 0, 0, 0}
+};
+
 extern int sws_flags;
 
 /*
@@ -101,10 +109,8 @@
 	{"o", "Option -o has been renamed to -vo (video-out), use -vo !\n",
             CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
 	{"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
-	// -----options related to audio and audio plugins-------
 	{"ao", &audio_driver, CONF_TYPE_STRING, 0, 0, 0},
-	{"aop", &ao_plugin_cfg.plugin_list, CONF_TYPE_STRING, 0, 0, 0},
-	{"aop_delay", &ao_plugin_cfg.pl_delay_len, CONF_TYPE_INT, CONF_MIN, 0, 0},
+	{"aop", ao_plugin_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
 //	{"dsp", &dsp, CONF_TYPE_STRING, CONF_NOCFG, 0, 0},
 	{"dsp", "Use -ao oss:dsp_path!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
         {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0},