aboutsummaryrefslogtreecommitdiff
path: root/sound.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2002-04-22 19:29:22 +0000
committerNicolas Bacca2002-04-22 19:29:22 +0000
commit9bd56e63acd73a19a7ce52c657d772266203d5f6 (patch)
tree2c60a51839e1289e9bc50ac40faefcea8d89d10f /sound.cpp
parentaecbd8d8d2ae3ba44f5eac3f898c9281cd61acae (diff)
downloadscummvm-rg350-9bd56e63acd73a19a7ce52c657d772266203d5f6.tar.gz
scummvm-rg350-9bd56e63acd73a19a7ce52c657d772266203d5f6.tar.bz2
scummvm-rg350-9bd56e63acd73a19a7ce52c657d772266203d5f6.zip
Removed fstat - not needed and not implemented on WinCE
svn-id: r4056
Diffstat (limited to 'sound.cpp')
-rw-r--r--sound.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound.cpp b/sound.cpp
index 8ec76c4c6c..77674d2523 100644
--- a/sound.cpp
+++ b/sound.cpp
@@ -737,9 +737,7 @@ void Scumm::playMP3CDTrack(int track, int num_loops, int start, int delay) {
// Calc delay
if (!delay) {
- struct stat file_stat;
- fstat(fileno(_mp3_tracks[index]),&file_stat);
- mad_timer_set(&duration, 0,file_stat.st_size, (_mad_header[index].bitrate/8));
+ mad_timer_set(&duration, 0, _mp3_size[index], (_mad_header[index].bitrate/8));
} else {
mad_timer_set(&duration, 0, delay, 75);
}