tags 293334 + patch pending
thanks

* Martin Michlmayr <[EMAIL PROTECTED]> [2005-02-02 15:52]:
> It seems to be impossible to tell jack to use a fixed bitrate.  The
> --bitrate (-b) option is simply ignored when --vbr is set to 1 (which
> it is in the default).

* Martin Michlmayr <[EMAIL PROTECTED]> [2005-02-02 16:05]:
> I guess what I was trying to say but what I didn't say is that
> --bitrate should override the -v option.

And here's a patch.


--- jack_checkopts.py~  2005-11-09 22:40:49.000000000 +0000
+++ jack_checkopts.py   2005-11-09 23:03:19.000000000 +0000
@@ -65,6 +65,14 @@
             cf.rupdate({'id3_genre': {'val': genre}}, "check")
         del genre
 
+    if not cf2.has_key('vbr'):
+        if cf2.has_key('bitrate') and cf2.has_key('vbr_quality'):
+            cf.rupdate({'vbr': {'val': 1}}, "check")
+        elif cf2.has_key('bitrate'):
+            cf.rupdate({'vbr': {'val': 0}}, "check")
+        elif cf2.has_key('vbr_quality'):
+            cf.rupdate({'vbr': {'val': 1}}, "check")
+
     for i in cf2.keys():
         if not cf.has_key(i):
             error("unknown config item `%s'" % i)


-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to