use File::size() method were it makes sense; one small change to simon.cpp based on comment on bug #595813

svn-id: r5210
This commit is contained in:
Max Horn 2002-10-21 12:34:54 +00:00
parent 46a3039f70
commit 31c773923e
3 changed files with 9 additions and 29 deletions

View file

@ -1300,8 +1300,7 @@ int Sound::getCachedTrack(int track) {
mad_frame_finish(&frame);
mad_stream_finish(&stream);
// Get file size
file->seek(0, SEEK_END);
_mp3_size[current_index] = file->pos();
_mp3_size[current_index] = file->size();
_mp3_tracks[current_index] = file;
return current_index;