* Kristine Daniels <[EMAIL PROTECTED]> [2005-11-12 00:48]:
[ jack -f doesn't work anymore]
> Options: vbr read-ahead=0 id=de09160c len=38:45 | press Q to quit
>              ...I feel blocked - quit with 'q' if you get bored...
> 01 02:31: A failure occured
> 02 02:39: :DAE: waiting for status report...
> 03 02:24: :DAE: waiting for status report...

Yeah, sorry, I broke it.  Here's a patch.  The 2nd chuck fixes the
real problem and makes the code functional again: we cannot pass a
Unicode string to wave.open() -- it needs a normal string.  The 1st
char fixes some cosmetic issues in the status output... I slightly
changed a fix things when I introduced jack_status.get_2_line() and
converted this code over.


diff -urN jack-3.1.1~/jack_main_loop.py jack-3.1.1/jack_main_loop.py
--- jack-3.1.1~/jack_main_loop.py       2005-11-12 16:50:35.000000000 +0000
+++ jack-3.1.1/jack_main_loop.py        2005-11-12 17:52:31.000000000 +0000
@@ -392,10 +392,11 @@
                             #jack_term.tmod.dae_stat_upd(i['track'][NUM], 
None, i['percent'])
         
                 elif i['type'] == "image_reader":
-                    line = string.strip(jack_status.get_2_line(i['buf']))
-                    jack_status.dae_stat_upd(i['track'][NUM], line)
-                    if line.startswith("Error"):
-                        global_error = global_error + 1
+                    line = string.strip(jack_status.get_2_line(i['buf'], 
default=""))
+                    if line:
+                        jack_status.dae_stat_upd(i['track'][NUM], line)
+                        if line.startswith("Error"):
+                            global_error = global_error + 1
         
                 else:
                     error("unknown subprocess type \"" + i['type'] + "\".")
diff -urN jack-3.1.1~/jack_workers.py jack-3.1.1/jack_workers.py
--- jack-3.1.1~/jack_workers.py 2005-11-12 16:50:35.000000000 +0000
+++ jack-3.1.1/jack_workers.py  2005-11-12 16:50:49.000000000 +0000
@@ -315,7 +315,7 @@
 #
 ## set up output wav file:
 #
-            wav = wave.open(track[NAME].decode(cf['_charset'], "replace") + 
".wav", 'w')
+            wav = wave.open(track[NAME] + ".wav", 'w')
             wav.setnchannels(2)
             wav.setsampwidth(2)
             wav.setframerate(44100)

-- 
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