[hatari-devel] Use correct white noise

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


Hi,

This patch uses the correct LFSR for the YM2149. The previous must
have had a typo. currentNoise ^= YM2149_RndCompute() is corrected.
BTW the noise doesn't sound different.

The code is also optimized in Galois form.

see: (also note 17 stage table at end)
http://www.newwaveinstruments.com/resources/articles/m_sequence_linear_feedback_shift_register_lfsr.htm


David

Attachment: sound.c.diff
Description: Binary data



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