linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] WINSND overrun


From: Simon Morlat
Subject: Re: [Linphone-developers] WINSND overrun
Date: Tue, 17 Aug 2010 17:49:09 +0200

Hi Sven,

It seems you are right. I fix it on git.
Did you try your fix ?

Simon

Le vendredi 16 juillet 2010 à 08:33 +0200, Sven Westergren a écrit :
> Hi all,
> 
>  
> 
> We’re having issues with sound buffer overruns on some (rather old)
> computers. When this happens mediastreamer tries to reset the card but
> it doesn’t start to play afterwards because nbufs_playing never hits
> 0.
> 
> It’s somewhat difficult to reproduce so I have been trying to analyze
> the relevant code (winsnd3.c, winsnd_write_process(…) ) and I believe
> that there’s a missing break statement after line 618.
> 
>  
> 
> lines 613-619:
> 
> }else{
> 
>     /* no more free wavheader, overrun !*/
> 
>     ms_warning("WINSND overrun, restarting");
> 
>     d->overrun=TRUE;
> 
>     d->nsamples=0;
> 
>     waveOutReset(d->outdev);
> 
> }
> 
>  
> 
> Since there’s no break at the end of this else-clause the enclosing
> loop will continue and subsequent iteration will do a playout_buf() on
> an occupied wavheader.
> 
> Can someone confirm or refute my suspicions?
> 
>  
> 
> Best regards
> 
> Sven Westergren
> 
> nWise Ab
> 
> 
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]