FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 8a3ec686 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1254 29193198-4895-4776-b068-10539e920549
parent 32edff80
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,12 @@ class MicInput(InputSource):
try: self.sound = tkSnack.Sound(file=outFile, rate=self.rate, channels=1, encoding="Lin16")
except: return self.err("Cannot write to sound file '"+outFile+"' with tkSnack")
try: self.sound.record()
except:
self.err("sound.record() failed") # e.g. waveInOpen failed on Windows 7 (driver problems?)
except: # e.g. waveInOpen failed on Windows 7 (driver problems?)
self.err("sound.record() failed")
try: self.sound.stop()
except: pass
try: os.remove(outFile)
except: pass
del self.sound
def err(self,msg): app.todo.alert=msg
def stopRec(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment