aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2023-03-12 13:55:55 -0400
committerAnthony Wang2023-03-12 13:55:55 -0400
commit46911993234b7c9cc07546f56843b35621b7f811 (patch)
tree8eba49133963791ce0ef0ba8ce46e1b612f41e6a
parent44b8c5f7311eccb8058df27be1a4d55651580940 (diff)
Fix typo in comments
-rw-r--r--music.nim2
-rw-r--r--music.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/music.nim b/music.nim
index 2ad0e3f..30c256c 100644
--- a/music.nim
+++ b/music.nim
@@ -334,7 +334,7 @@ music.process(bass, 64)
music.process(outro, 72, 4)
music.sortByStart()
-# Print out music encoded in s16 to standard output
+# Print out music encoded in s32 to standard output
for i in (0 * bitrate ..< 84 * bitrate):
let bytes = cast[array[4, uint8]](music.at(i / bitrate))
doAssert 4 == stdout.writeBytes(bytes, 0, 4)
diff --git a/music.py b/music.py
index c08b981..74197b6 100644
--- a/music.py
+++ b/music.py
@@ -325,6 +325,6 @@ def at(t):
return int(2**28 * ret)
-# Print out music encoded in s16 to standard output
+# Print out music encoded in s32 to standard output
for i in range(0 * bitrate, 84 * bitrate):
sys.stdout.buffer.write(struct.pack('i', at(i / bitrate)))