All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Dec 25, 2013 4:28 pm 
User avatar

Joined: Tue Dec 08, 2009 12:49 pm
Posts: 47
Location: Den Haag, The Netherlands
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 :)


Last edited by Kakoon on Fri Jun 27, 2014 10:54 am, edited 1 time in total.

Top
   
PostPosted: Sat Jun 21, 2014 11:32 am 
User avatar

Joined: Tue Dec 08, 2009 12:49 pm
Posts: 47
Location: Den Haag, The Netherlands
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.


Top
   
PostPosted: Mon Nov 03, 2014 7:26 pm 
User avatar

Joined: Tue Dec 08, 2009 12:49 pm
Posts: 47
Location: Den Haag, The Netherlands
I finally solved this problem. :D

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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited