Package: jack / 3.1.1+cvs20050801-31

11_choose_bitrate_quality.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Use fixed bitrate when a bitrate is given on the command line even when the
config defaults to variable bitrate.  Debian #293334.

--- a/jack_checkopts.py~	2005-11-09 22:40:49.000000000 +0000
+++ b/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)