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
When performing audio capture/playback, sometimes the playbacked audio adds noise or distortion. It's difficult to determine when and how the issue is triggered; the program may run for a whole day without encountering this problem, while at other times, the issue may start to appear after a couple of hours. Once the noise/distortion begins, the way to return to normal is to close the input and then reopen it (please refer to the following test code), or to restart the program.
I have written a simple test program as follows. When the program starts, it plays sound from the default input nicely. If debug break the while loop, for example, at the line "if (false)," and then continues, the sound will have noise or distortion. I'm not sure if debug break trigger the same issue as our application does after a long run, but the symptoms are the same. If, after debug break, move the running line to inside "if (false){}" to close/open the input, the issue will go away.
The test is on Windows 11 x64, with main branch code at 4/30.
Attached is a recorded example of the problematic audio. SDL-sound-noise.zip
When performing audio capture/playback, sometimes the playbacked audio adds noise or distortion. It's difficult to determine when and how the issue is triggered; the program may run for a whole day without encountering this problem, while at other times, the issue may start to appear after a couple of hours. Once the noise/distortion begins, the way to return to normal is to close the input and then reopen it (please refer to the following test code), or to restart the program.
I have written a simple test program as follows. When the program starts, it plays sound from the default input nicely. If debug break the while loop, for example, at the line "if (false)," and then continues, the sound will have noise or distortion. I'm not sure if debug break trigger the same issue as our application does after a long run, but the symptoms are the same. If, after debug break, move the running line to inside "if (false){}" to close/open the input, the issue will go away.
The test is on Windows 11 x64, with main branch code at 4/30.
Attached is a recorded example of the problematic audio.
SDL-sound-noise.zip
The text was updated successfully, but these errors were encountered: