You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
When using output set to stdout, on Windows mrswatson is inserting extra bytes compared to outputting pcm -o output.pcm.
The extra bytes seem to be all 0x0d, Carriage return.
The extra bytes make the stdout file have crackling noise artifacts.
I am not sure the cause, but suspect it might have to do with flushing the log writer with newlines, (though the newline character is not the same a carriage return, it is the only think I can think of). see:
I put together a test case to show this. Run generate.bat to regenerate the files. After generating the pcm files both ways, I append 44 bytes of a wav header. Appending the bytes make the normally outputted pcm file match the wav file exactly. The stdout pcm file does not match and you can hear the extra crackle by listening to header_stdout.wav
This zipfile contains a generate.bat , midimake.exe, head.exe, a vst instrument dll and mrswatson.exe to recreate the issue on windows. It should be enough to click generate.bat. midimake is a simple utility I made that makes a midi file based on the note numbers passed as arguments. head.exe is a simple utility I made that returns the first n bytes of a file. pcmStdoutRecreateNoise.zip
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using output set to stdout, on Windows mrswatson is inserting extra bytes compared to outputting pcm
-o output.pcm
.The extra bytes seem to be all 0x0d, Carriage return.
The extra bytes make the stdout file have crackling noise artifacts.
I am not sure the cause, but suspect it might have to do with flushing the log writer with newlines, (though the newline character is not the same a carriage return, it is the only think I can think of). see:
MrsWatson/source/logging/LogPrinter.c
Line 67 in dbbd637
I put together a test case to show this. Run generate.bat to regenerate the files. After generating the pcm files both ways, I append 44 bytes of a wav header. Appending the bytes make the normally outputted pcm file match the wav file exactly. The stdout pcm file does not match and you can hear the extra crackle by listening to header_stdout.wav
This zipfile contains a generate.bat , midimake.exe, head.exe, a vst instrument dll and mrswatson.exe to recreate the issue on windows. It should be enough to click generate.bat. midimake is a simple utility I made that makes a midi file based on the note numbers passed as arguments. head.exe is a simple utility I made that returns the first n bytes of a file.
pcmStdoutRecreateNoise.zip
The text was updated successfully, but these errors were encountered: