View Single Post
Old 30 August 2010, 20:59   #9
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,711
Hum... Let me check into that, give me a moment. Probably a bit manipulation issue.

EDIT:

For the quadrascopes, on line 29 in "pt_visuals.c" change:
_y += ((~v[i].data[fracPos] * (v[i].vol >> 1)) >> 8);
to:
_y += ((~v[i].data[fracPos] * (v[i].vol / 2)) / 256);

The C compilers should do bitshifting according to its endianness, but maybe they don't. I have more to learn on that point!
See if it helps. If it does, I have a lot of code to change!

Regarding the noisy sound in your build: The audio samples get divided by 128 before output, but on your side they might get multiplied with 128

Last edited by 8bitbubsy; 30 August 2010 at 21:40.
8bitbubsy is offline  
 
Page generated in 0.04427 seconds with 11 queries