aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.py
diff options
context:
space:
mode:
authortassaron2017-07-09 14:31:19 -0400
committertassaron2017-07-09 14:31:19 -0400
commitf6fbc8d2423ac5ae683a7613b53648db3e02e323 (patch)
tree218c5a056349f9eb1cc0b7952a09b254f1962b95 /src/core.py
parent94d4acc1f4f4abe4029e8f9c050932b67cae8cec (diff)
a basic Sound component for mixing sounds
to be greatly expanded...
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py5
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
2026-03-06refactor: port 5001kj_sh6041-2/+2 2026-02-28refactor: add more marginskj_sh6042-5/+8 2026-02-21refactor: run `nph` on `app.nim`kj_sh6041-55/+112 2026-02-21refactor: fix XDeclaredButNotUsed warningkj_sh6041-1/+1 2026-02-21refactor: replace old screenshot with new imageKyle Javier [kj_sh604]1-1/+1 2026-02-21feat: more paper sizes and run prettier on fileskj_sh6043-107/+151 2026-02-20feat: extra optionskj_sh6044-35/+101 2026-02-19refactor: go ASCII only mode for nowkj_sh6041-2/+14 2026-02-16refactor: update .gitignorekj_sh6041-1/+2 2026-02-16refactor: add comments for future KJ's sanitykj_sh6041-8/+15