Ticket #8332: fmopl.cpp.diff

File fmopl.cpp.diff, 590 bytes (added by SF/damienguard, 16 years ago)
  • fmopl.cpp

    RCS file: /cvsroot/scummvm/scummvm/sound/fmopl.cpp,v
    retrieving revision 1.20
    diff -u -r1.20 fmopl.cpp
     
    471471#define WHITE_NOISE_db 6.0
    472472inline void OPL_CALC_RH(OPL_CH *CH) {
    473473        uint env_tam, env_sd, env_top, env_hh;
    474         int whitenoise = int((rand()&1) * (WHITE_NOISE_db / EG_STEP));
     474        int whitenoise = int((oplRnd.getRandomNumber(32767)&1) * (WHITE_NOISE_db / EG_STEP));
     475
    475476        int tone8;
    476477
    477478        OPL_SLOT *SLOT;