diff -ur ScummVM-cvs20021114/scummvm/simon/simon.cpp ScummVM-cvs20021114+hack/scummvm/simon/simon.cpp
old
|
new
|
|
4735 | 4735 | #endif |
4736 | 4736 | #ifdef USE_MAD |
4737 | 4737 | if (_voice_type == FORMAT_MP3) { |
4738 | | uint8 buf[2048]; |
4739 | | uint32 pos = 0; |
4740 | | _voice_file->seek(0, SEEK_SET); |
4741 | | while ((_voice_file->read(buf, 2048)) > 0) { |
4742 | | if (pos == _voice_file->pos()) |
4743 | | break; |
4744 | | pos = _voice_file->pos(); |
4745 | | } |
4746 | | _voice_offsets[gss->NUM_EFFECTS_RESOURCES] = pos; |
| 4738 | _voice_file->seek(0, SEEK_END); |
| 4739 | _voice_offsets[gss->NUM_EFFECTS_RESOURCES] = _voice_file->pos(); |
4747 | 4740 | } |
4748 | 4741 | #endif |
4749 | 4742 | } |
… |
… |
|
4789 | 4782 | #endif |
4790 | 4783 | #ifdef USE_MAD |
4791 | 4784 | if (_effects_type == FORMAT_MP3) { |
4792 | | uint8 buf[2048]; |
4793 | | uint32 pos = 0; |
4794 | | _effects_file->seek(0, SEEK_SET); |
4795 | | while ((_effects_file->read(buf, 2048)) > 0) { |
4796 | | if (pos == _effects_file->pos()) |
4797 | | break; |
4798 | | pos = _effects_file->pos(); |
4799 | | } |
4800 | | _effects_offsets[gss->NUM_EFFECTS_RESOURCES] = pos; |
| 4785 | _effects_file->seek(0, SEEK_END); |
| 4786 | _effects_offsets[gss->NUM_EFFECTS_RESOURCES] = _effects_file->pos(); |
4801 | 4787 | } |
4802 | 4788 | #endif |
4803 | 4789 | } else { |