Re: [hatari-devel] SDL1 vs. SDL2 sound pausing

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 11/09/2016 à 17:43, Thomas Huth a écrit :

OK, I've now done some quick and certainly non-representative tests by
simply adding a hack a la "nGeneratedSamples = len * 9 / 10" at the
beginning of the callback function, to see whether I could hear a
difference between setting the remaining part of the buffer to 0 or
duplicating the samples. But I have to say that both just sounded bad.
Maybe the sample duplication was a tiny little, little bit better than
the setting to 0, but that could also be just my imagination.

So let's do the "keep it simple" principle here and go for your
suggestion to always set the remaining part of the buffer to 0.

Could you do that "memset-to-zero" patch, or shall I do it?


hi

thanks for your tests ; I pushed the change to clear the rest of the buffer in case we don't have enough sample to play.

Nicolas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/