fixing null reference
This commit is contained in:
@@ -25,6 +25,8 @@ class Audio:
|
||||
return (out_data, pyaudio.paContinue)
|
||||
|
||||
def isRecording(self):
|
||||
if not self.recordStream:
|
||||
return False
|
||||
return self.recordStream.is_active()
|
||||
|
||||
def startRecord(self):
|
||||
|
||||
Reference in New Issue
Block a user