aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/core.h
diff options
context:
space:
mode:
authorMax Horn2009-03-09 16:15:35 +0000
committerMax Horn2009-03-09 16:15:35 +0000
commit4e6a7d83d116dc9ae81d51a7f0ac61134486304d (patch)
tree4b34fe34ee0bf0af8c2cb82610b6ba5112bcc86b /engines/sci/sfx/core.h
parent77b40251ca9f22b71680888ee6dd69e027f765ba (diff)
downloadscummvm-rg350-4e6a7d83d116dc9ae81d51a7f0ac61134486304d.tar.gz
scummvm-rg350-4e6a7d83d116dc9ae81d51a7f0ac61134486304d.tar.bz2
scummvm-rg350-4e6a7d83d116dc9ae81d51a7f0ac61134486304d.zip
SCI: Rewrote handling of song wakeup times & (iterator) delays, to avoid rounding issues between ticks (1/60s) and milliseconds; also fixed a bug (coming from Glutton ;) where delays measured in millisecs were treated as ticks instead. Thanks to Walter for the precursor of this patch
svn-id: r39263
Diffstat (limited to 'engines/sci/sfx/core.h')
-rw-r--r--engines/sci/sfx/core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/sfx/core.h b/engines/sci/sfx/core.h
index e7f8a8db07..3eb3cf1489 100644
--- a/engines/sci/sfx/core.h
+++ b/engines/sci/sfx/core.h
@@ -36,8 +36,7 @@ namespace Sci {
class SongIterator;
struct fade_params_t;
-#define SOUND_TICK 1000 / 60
-/* Approximately 17 milliseconds */
+#define SFX_TICKS_PER_SEC 60 /* MIDI ticks per second */
#define SFX_STATE_FLAG_MULTIPLAY (1 << 0) /* More than one song playable