Shorten hint text.
[naja.git] / tools / gen_sound.py
index 1e9dd69a259f4c5188a4a8cc1296d29bdd8f42bb..94bf3d12cd59d7891ece2dc2674a901737eaf982 100755 (executable)
@@ -13,7 +13,8 @@ def gen_raw(description):
 
 def encode(filename, data):
     print "Writing %s" % filename
-    p = Popen(('oggenc', '-o', filename, '--raw', '--quiet', '-'),
+    p = Popen(('oggenc', '-o', filename, '--raw', '--raw-chan=1',
+               '--quiet', '-'),
               stdin=PIPE, cwd='data/sounds')
     for blob in data:
         p.stdin.write(blob)
@@ -32,7 +33,7 @@ def main():
 
     sounds = SOUNDS.keys()
     if len(sys.argv) > 1:
-        sounds = (sys.argv[1:])
+        sounds = sys.argv[1:]
     for sound in sounds:
         description = SOUNDS[sound]
         if isinstance(description, Chunk):