SunVox DLL audio_callback only works intermittently [FIXED]
Posted: Sun Sep 18, 2016 10:40 pm
I was trying to use the sv_audio_callback function in SunVox DLL, and am running into a peculiar issue that I can't figure out just yet.
Whenever I would use it in a way similar to that used by the "test5.cpp" example code, all I got in the buffer were zeros.
Wondering if I was calling it incorrectly, I tried compiling the actual test5.cpp example, then running it and inspecting the output it gave. It was also writing out zeros! This was on both MacOS (10.11.6) and Linux (Xubuntu 16.04 distribution).
At some point later in the day, I tried my code again, and it started working as I expected it to. I was able to use it to successfully export songs to WAV files, and to do some spectrogram visualization.
Now that I'm trying the same code again this morning, it's not working again, despite zero modifications.
SunVox itself works fine. The PixiLang example works (and appears to use the sv_audio_callback function in the DLL). Normal playback through audio out using the DLL works.
I'll try it later in the day to see if it's somehow related to clock time.
Whenever I would use it in a way similar to that used by the "test5.cpp" example code, all I got in the buffer were zeros.
Wondering if I was calling it incorrectly, I tried compiling the actual test5.cpp example, then running it and inspecting the output it gave. It was also writing out zeros! This was on both MacOS (10.11.6) and Linux (Xubuntu 16.04 distribution).
At some point later in the day, I tried my code again, and it started working as I expected it to. I was able to use it to successfully export songs to WAV files, and to do some spectrogram visualization.
Now that I'm trying the same code again this morning, it's not working again, despite zero modifications.
SunVox itself works fine. The PixiLang example works (and appears to use the sv_audio_callback function in the DLL). Normal playback through audio out using the DLL works.
I'll try it later in the day to see if it's somehow related to clock time.