aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-06 12:19:15 +0000
committerTorbjörn Andersson2005-04-06 12:19:15 +0000
commit224b2afbf1cf6da036f6382b7fe56d2c9051a4f3 (patch)
tree400cff9914ca3c7148b4cf986071723f2b905934 /saga
parentabe278b1edb1dbd4302799774bf44111e347855d (diff)
downloadscummvm-rg350-224b2afbf1cf6da036f6382b7fe56d2c9051a4f3.tar.gz
scummvm-rg350-224b2afbf1cf6da036f6382b7fe56d2c9051a4f3.tar.bz2
scummvm-rg350-224b2afbf1cf6da036f6382b7fe56d2c9051a4f3.zip
Removed system includes.
svn-id: r17413
Diffstat (limited to 'saga')
-rw-r--r--saga/saga.h4
-rw-r--r--saga/sndres.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/saga/saga.h b/saga/saga.h
index c5d2db4287..37ea016619 100644
--- a/saga/saga.h
+++ b/saga/saga.h
@@ -33,10 +33,6 @@
#include "common/stream.h"
#include "common/rect.h"
-// TODO: These shouldn't be here!
-#include <limits.h>
-#include <stddef.h>
-
#include "saga/text.h"
#include "saga/gfx.h"
#include "saga/list.h"
diff --git a/saga/sndres.cpp b/saga/sndres.cpp
index 4262709bc0..fd4a84daab 100644
--- a/saga/sndres.cpp
+++ b/saga/sndres.cpp
@@ -270,7 +270,7 @@ int SndRes::getVoiceLength(uint32 voice_rn) {
ms_f = (double)length / 22050 * 2000.0;
ms_i = (int)ms_f;
} else if (res_type == GAME_SOUND_PCM) {
- ms_f = (double)length / (_snd_info.sample_size / CHAR_BIT) / (_snd_info.freq) * 1000.0;
+ ms_f = (double)length / (_snd_info.sample_size / 8) / (_snd_info.freq) * 1000.0;
ms_i = (int)ms_f;
} else if (res_type == GAME_SOUND_VOC) {
// Rough hack, fix this to be accurate