All times are UTC+02:00




Post new topic  Reply to topic  [ 13 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Buffer
PostPosted: Sun Apr 19, 2009 2:26 am 
User avatar

Joined: Tue Mar 17, 2009 2:56 pm
Posts: 4161
in all atention to tuning ST .. i recently found some problems about buffers.
i still use Realtek Soundcard (till Juli@ comes) to transmit Stereo and RDS and testing (FM Transmitter output) but i notice that buffer after some time ~1 hour .. drops all down .. and than start very small sound droping.
Buffer size is ~0.50 found that most stable..
Input sound buffer is on 0.
CPU is ~70% (affinity for one core)
Sound comes from Virtual cable.

so, is it because Sound card or what ?

_________________
control point
control point2


Top
   
 Post subject: Re: Buffer
PostPosted: Mon Apr 20, 2009 1:20 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11211
Then apparently the sound card is playing things faster than VAC... (Say vac uses 44100 Hz and the sound card plays 44101 Hz, then it is falls one sample short every second. After an hour that would be 3600 samples... Of course the difference can be bigger.

For the next version I'll add a "minimum buffer filling" check, if it falls below that the output will stop until the buffer is full again. Not a perfect solution, but at least after this short drop it will start playing properly again. (Actually this check is already there, but it doesn't always work because the Windows audio output has a delay. Which means that I can send data to it before the buffer was really empty, but you still get a hiccup because of the delay in Windows.)

As a temporary solution, increase the buffer size so it takes a very long time before this occurs.


Top
   
 Post subject: Re: Buffer
PostPosted: Mon Apr 20, 2009 11:01 pm 
User avatar

Joined: Tue Mar 17, 2009 2:56 pm
Posts: 4161
i use 192000, so if i set 192001 in VAC, maybe that wiil solve problem ?

edit:

no.. this did not help.

_________________
control point
control point2


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 1:55 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11211
I have made a new version that should work better:

Winamp DSP plugin: http://www.stereotool.com/download/dsp_ ... r_BETA.exe
Stand alone version: http://www.stereotool.com/download/ster ... r_BETA.exe
Command line: UNAVAILABLE for now
VST version: http://www.stereotool.com/download/vst_ ... l_BETA.dll

Instead of the current behavior (continuously stuttering sound when the buffer gets empty), this version stops the playback and waits until the buffer is full again when it gets below 10% of the buffer size. So you'll still get a hiccup, but afterwards it should continue without hiccups.

Note: I've also made a change to the audio processing - the volume should be more stable (loud highs have less effect on the rest of the sound) and the bass sounds are a bit louder again - but some loud highs MAY sound a bit less good (haven't heard it anywhere yet, but theoretically this could be the case...).


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 1:33 pm 
User avatar

Joined: Tue Mar 17, 2009 2:56 pm
Posts: 4161
:)
ok testing new beta last 3 hours .. and now this is strange. (in positive meaning)

Buffer still drops but now drops at ~20-25% .... and stays there.

i'll monitoring more ... but if this 100% true .. this is better then previous ver.... strange but better.

_________________
control point
control point2


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 4:19 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11211
Actually that doesn't make any sense at all..... :shock:


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 4:53 pm 
User avatar

Joined: Tue Mar 17, 2009 2:56 pm
Posts: 4161
Quote:
Actually that doesn't make any sense at all..... :shock:
i know .. and that is why i said "strange"

start:
Image

after 2 hours:
Image

_________________
control point
control point2


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 7:47 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11211
Actually, that's rather close to the minimum buffer filling below which I'm halting the playback for a (short) while. Are you sure that there have been no hiccups? They should be less than 0.15 seconds, so you might not have noticed them!


Top
   
 Post subject: Re: Buffer
PostPosted: Tue Apr 21, 2009 8:23 pm 
User avatar

Joined: Tue Mar 17, 2009 2:56 pm
Posts: 4161
Rigt now i don't here hiccups, but buffer stays there and no buffer restarting as you said.
Erlier buffer was half smaller.
now testing with more buffer ~0.50s .. i'll report in ~4horus

_________________
control point
control point2


Top
   
 Post subject: Re: Buffer
PostPosted: Wed Apr 22, 2009 12:49 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11211
Ok, I've now uploaded a new version that stops when the buffer contains far less than 10%. Also the sound quality should be slightly better.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ]  Go to page 1 2 Next

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