don't leave a wav file lying around when recording
This commit is contained in:
parent
4dbb87e4c1
commit
6b479fc839
@ -53,7 +53,7 @@ processingChain = []
|
||||
recFiles = []
|
||||
|
||||
processingChain = [
|
||||
["lame", "rec.wav", processingDst, "--noreplaygain", "--quiet"],
|
||||
["lame", processingSrc, processingDst, "--noreplaygain", "--quiet"],
|
||||
]
|
||||
|
||||
# don't show box on windows
|
||||
@ -277,6 +277,9 @@ class _Recorder:
|
||||
ret = retryWait(subprocess.Popen(cmd, startupinfo=si, env=env))
|
||||
except:
|
||||
ret = True
|
||||
finally:
|
||||
if os.path.exists(processingSrc):
|
||||
os.unlink(processingSrc)
|
||||
if ret:
|
||||
raise Exception(_(
|
||||
"Error running %s") %
|
||||
|
Loading…
Reference in New Issue
Block a user