Commit 1863ea1a authored by PoroCYon's avatar PoroCYon
Browse files

note on buffer size

parent 57c2bf06
......@@ -21,9 +21,16 @@ int main() {
while (player.IsPlaying()) {
* Apparently, if I make the sample amount passed to Render larger,
* the synth will segfault somewhere in synth.asm, when writing the
* output samples back to the buffer. I'm not sure if/how this is
* supposed to happen, but keeping the sample count sufficiently low
* works around it. ¯\_(ツ)_/¯
* If you have a better fix, please tell me.
player.Render(output_buffer, 64, sFALSE);
write(STDOUT_FILENO, output_buffer, 64*8);
write(STDOUT_FILENO, output_buffer, 64*sizeof(sF32)*2/*stereo*/);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment