Stereo Tool https://forums.stereotool.com/ |
|
Popping and clicking in command line version of 7.42 https://forums.stereotool.com/viewtopic.php?t=5441 |
Page 1 of 1 |
Author: | Kakoon [ Wed Dec 25, 2013 4:28 pm ] |
Post subject: | Popping and clicking in command line version of 7.42 |
I am using the command line version (stdin / stdout) of StereoTool for sound processing in my hobby homebrew music application. When I'm using 7.40, I hear regular clicks going on, roughly every 1/2 second. Especially when the music is getting a bit louder, as if a silent sample is being sent every buffer fill. This problem wasn't there in version 7.31. If required, I can investigate this problem further, but it's time to celebrate christmas now, with music enhanced by stereo tool 7.31, merry xmas by the way ![]() |
Author: | Kakoon [ Sat Jun 21, 2014 11:32 am ] |
Post subject: | Re: Popping and clicking in command line version of 7.40 |
I still have the issue in 7.42. Here I added some sample files (raw stdout output of stereo tool, but with wav header added): http://musicmaniak.net/downloads/temp/o ... md_731.wav http://musicmaniak.net/downloads/temp/o ... md_740.wav http://musicmaniak.net/downloads/temp/o ... md_742.wav You can clearly hear that versions 740 and 742 add clicks, while 731 doesn't. I used Bojcha's Addiction preset for all three of them. |
Author: | Kakoon [ Mon Nov 03, 2014 7:26 pm ] |
Post subject: | Re: Popping and clicking in command line version of 7.42 |
I finally solved this problem. ![]() I introduced a variable that showed the difference of the number of bytes I sent to the stereo tool process, and the number of samples I received from it. This difference became larger in time, stereo tool seemed to throw away samples! So I was sending audio in whatever amount the sound card buffer was needing. This seems to cause trouble in the Stereo Tool process. I always got the audio in chunks of 65536 bytes, and it seemed the rest was discarded. Maybe it's a maximum inputstream buffer size of Java, I don't know. But I got rid of the issues by buffering up the audio, and sending them in chunks of 4096 bytes. |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |