projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*REAL* Python has no dict comprehensions.
[naja.git]
/
tools
/
gen_sound.py
diff --git
a/tools/gen_sound.py
b/tools/gen_sound.py
index 1e9dd69a259f4c5188a4a8cc1296d29bdd8f42bb..94bf3d12cd59d7891ece2dc2674a901737eaf982 100755
(executable)
--- a/
tools/gen_sound.py
+++ b/
tools/gen_sound.py
@@
-13,7
+13,8
@@
def gen_raw(description):
def encode(filename, data):
print "Writing %s" % filename
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)
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 = 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):
for sound in sounds:
description = SOUNDS[sound]
if isinstance(description, Chunk):