Author: dmeyer
Date: Wed Nov 29 17:24:00 2006
New Revision: 2119

Added:
   trunk/popcorn/src/config.cxml
Removed:
   trunk/popcorn/src/config.py

Log:
replace config.py with xml file

Added: trunk/popcorn/src/config.cxml
==============================================================================
--- (empty file)
+++ trunk/popcorn/src/config.cxml       Wed Nov 29 17:24:00 2006
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<config>
+  <desc lang="en">player configuration</desc>
+  <schema>
+    <var name="widescreen" default="bars">
+      <values>
+       <value>bars</value>
+       <value>zoom</value>
+       <value>scale</value>
+      </values>
+      <desc lang="en">
+        How to handle 4:3 content on 16:9 screens. Possible values are
+        bars:  add black bars on the left and on the right
+        zoom:  zoom into the video, drop content on top and bottom
+        scale: ignore aspect ratio and fill the screen
+      </desc>
+    </var>
+    
+    <group name="audio">
+      <desc lang="de">audio settings</desc>
+      <schema>
+       <var name="driver" default="alsa">
+         <values>
+           <value>alsa</value>
+           <value>oss</value>
+         </values>
+         <desc>audio driver (alsa or oss)</desc>
+       </var>
+       <group name="device">
+         <desc lang="en">
+            Device settings (only used by alsa). Set them to a specific alsa
+           device, e.g. hw:0,0 or default or special devices like
+           plug:front:default. If not set, player defaults will be used.
+         </desc>
+         <schema>
+           <var name="mono" type="str"/>
+           <var name="stereo" type="str"/>
+           <var name="surround40" type="str"/>
+           <var name="surround51" type="str"/>
+           <var name="passthrough" type="str"/>
+         </schema>
+       </group>
+       <var name="channels" default="2">
+         <values>
+           <value>2</value>
+           <value>4</value>
+           <value>6</value>
+         </values>
+         <desc>number of channels (2, 4 or 6)</desc>
+       </var>
+       <var name="passthrough" default="False">
+         <desc>AC3 and DTS passthrough</desc>
+       </var>
+      </schema>
+    </group>
+  </schema>
+
+  <code>
+    import backends
+    
+    for n, c in backends.config:
+      config.add_variable(n, c)
+  </code>
+</config>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to