Re: [hatari-devel] Falcon left-right sound swapper bug?

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


Le 16/04/2014 10:49, Laurent Sallafranque a écrit :

The normal sound should be

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40


The corrupted sound looks like : (the hole begins at value 10)

0 1 2 3 4 5 6 7 8 9 10 0 0 0 0 0 0 0 18 0 0 0 0 0 0 0 0 27 0 0 0 0 0 0 0
0 36 0 0 0 0 0 0 0 0 45 0 0 0 0 0 ...

The number of zeros is frequently 8 consecutives zeros and sometimes
only 7.
The zeros appear on both voice left and voice right at exactly the same
place.



I don't see where it comes from, but you can try this to debug it :
in the crossbar code, add a counter for consecutive "0", when the counter reaches 7 or 8 as in your example, print the content of all the variables used in crossbar and try to see if one of these has some completely weird value (in normal case when playing music, it's unlikey you will get 7 or 8 "0" in a row)

Nicolas



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