OK, removed the hack. Let's see how it works irl

This commit is contained in:
simon.kagstrom 2009-01-05 16:03:59 +00:00
parent 1d29419840
commit bc8ae7ea85

View File

@ -129,9 +129,7 @@ void PlaySound( int16_t *Buffer, int count )
level = IRQ_Disable(); level = IRQ_Disable();
for( i = 0; i < count; i++ ) for( i = 0; i < count; i++ )
{ {
/* FIXME simonk: 8192 is a Frodo artifact. Not sure why this sample = (Buffer[i] & 0xffff);
* is needed */
sample = (Buffer[i] & 0xffff) + 8192;
dst[mixhead++] = sample | ( sample << 16); dst[mixhead++] = sample | ( sample << 16);
if (mixhead == 4000) if (mixhead == 4000)
mixhead = 0; mixhead = 0;