Previous 15994 Revisions Next

r6378 Sunday 15th November, 2009 at 05:11:12 UTC by Jonathan Gevaryahu
Commented out bipolar code, since it breaks sonic 2 on gamegear's "sega" sample.
[src/emu/sound]sn76496.c

src/emu/sound/sn76496.c
r6377r6378
4747 
4848  14/11/2009 : Lord Nightmare
4949  Removed STEP mess, vastly simplifying the code. Made output bipolar rather
50  than always above the 0 line.
50  than always above the 0 line, but disabled that code due to pending issues.
5151
5252  TODO: * Implement a function for setting stereo regs for the game gear.
5353          Requires making the core support both mono and stereo, and have
r6377r6378
6969#include "sn76496.h"
7070
7171
72#define MAX_OUTPUT 0x3fff
72#define MAX_OUTPUT 0x7fff
73// make the above 0x3fff if using bipolar output
7374#define NOISEMODE (R->Register[6]&4)?1:0
7475
7576
r6377r6378
241242         R->OldNoise = R->RNG & 1;
242243         R->Count[3] = R->Period[3];
243244      }
244
245/* //bipolar output, doesn't seem to work right with sonic 2 on gamegear at least
245246      out = (R->Output[0]?R->Volume[0]:(0-R->Volume[0]))
246247         +(R->Output[1]?R->Volume[1]:(0-R->Volume[1]))
247248         +(R->Output[2]?R->Volume[2]:(0-R->Volume[2]))
248249         +(R->Output[3]?R->Volume[3]:(0-R->Volume[3]));
250*/
251      out = (R->Output[0]?R->Volume[0]:0)
252         +(R->Output[1]?R->Volume[1]:0)
253         +(R->Output[2]?R->Volume[2]:0)
254         +(R->Output[3]?R->Volume[3]:0);
249255
250256      *(buffer++) = out;
251257

Previous 15994 Revisions Next


© 1998-2018 The MESS Team