diff options
-rw-r--r-- | music.nim | 2 | ||||
-rw-r--r-- | music.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) @@ -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))) |