diff --git a/terranmon.txt b/terranmon.txt index 174e473..4fdf665 100644 --- a/terranmon.txt +++ b/terranmon.txt @@ -429,6 +429,8 @@ Packet Types - Add 128 to the resulting number if the frame has a padding bit (should not happen on 32kHz sampling rate) Special value of 255 may indicate some errors + To encode an audio to compliant format, use ffmpeg: ffmpeg -i -acodec libtwolame -b:a k -ar 32000 + GLOBAL TYPE 0 Packet - uint32 SIZE OF FRAMEDATA * FRAMEDATA COMPRESSED IN GZIP diff --git a/tsvm_executable/src/net/torvald/tsvm/AudioMenu.kt b/tsvm_executable/src/net/torvald/tsvm/AudioMenu.kt index 41f8e2a..2018e30 100644 --- a/tsvm_executable/src/net/torvald/tsvm/AudioMenu.kt +++ b/tsvm_executable/src/net/torvald/tsvm/AudioMenu.kt @@ -120,7 +120,7 @@ class AudioMenu(parent: VMEmuExecutable, x: Int, y: Int, w: Int, h: Int) : EmuMe val smpRH = (smpR * envelopeHalfHeight).roundToInt() // -50..50 batch.fillRect(x + s, y + 27, 1, smpLH) - batch.fillRect(x + s, y + 81, 1, smpLH) + batch.fillRect(x + s, y + 81, 1, smpRH) } } else {