Ticket #7951: loomfix.diff

File loomfix.diff, 678 bytes (added by SF/urkle, 23 years ago)
  • sound.cpp

    RCS file: /cvsroot/scummvm/scummvm/sound.cpp,v
    retrieving revision 1.53
    diff -u -r1.53 sound.cpp
     
    728734
    729735        // Calc offset
    730736        frame_size = 144 * _mad_header[index].bitrate / _mad_header[index].samplerate;
    731         offset = (long)((float)start / (float)75 * 1000 /
    732                                 (float)((float)1152 / (float)_mad_header[index].samplerate *
    733                                                                                   1000) * (float)(frame_size + 0.5));
     737        offset = (long)( (float)start / (float)75 * ((float)_mad_header[index].bitrate/(float)8));
     738
    734739        // Calc delay