diff options
| author | tassaron | 2017-07-09 14:31:19 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-09 14:31:19 -0400 |
| commit | f6fbc8d2423ac5ae683a7613b53648db3e02e323 (patch) | |
| tree | 218c5a056349f9eb1cc0b7952a09b254f1962b95 /src/core.py | |
| parent | 94d4acc1f4f4abe4029e8f9c050932b67cae8cec (diff) | |
a basic Sound component for mixing sounds
to be greatly expanded...
Diffstat (limited to 'src/core.py')
| -rw-r--r-- | src/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py index 9792e88..db430d1 100644 --- a/src/core.py +++ b/src/core.py @@ -485,7 +485,8 @@ class Core: '-ac', '1', # mono (set to '2' for stereo) '-'] in_pipe = toolkit.openPipe( - command, stdout=sp.PIPE, stderr=sp.DEVNULL, bufsize=10**8) + command, stdout=sp.PIPE, stderr=sp.DEVNULL, bufsize=10**8 + ) completeAudioArray = numpy.empty(0, dtype="int16") @@ -495,7 +496,7 @@ class Core: if self.canceled: break # read 2 seconds of audio - progress = progress + 4 + progress += 4 raw_audio = in_pipe.stdout.read(88200*4) if len(raw_audio) == 0: break |
