aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx
diff options
context:
space:
mode:
authorMax Horn2009-02-17 18:17:01 +0000
committerMax Horn2009-02-17 18:17:01 +0000
commit471f630c2e2da507cf4c0d52e55279e1d20177c1 (patch)
treec8b464d8674b467b0be57132c3890bde42f9ec26 /engines/sci/sfx
parentf245cf55b842ed81294e42f87369684630a22572 (diff)
downloadscummvm-rg350-471f630c2e2da507cf4c0d52e55279e1d20177c1.tar.gz
scummvm-rg350-471f630c2e2da507cf4c0d52e55279e1d20177c1.tar.bz2
scummvm-rg350-471f630c2e2da507cf4c0d52e55279e1d20177c1.zip
SCI: Moved sfx_pcm_urat_t from include/sfx_pcm.h to sfx/mixer.h
svn-id: r38434
Diffstat (limited to 'engines/sci/sfx')
-rw-r--r--engines/sci/sfx/mixer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/sfx/mixer.h b/engines/sci/sfx/mixer.h
index 69580d4767..2dbff557bc 100644
--- a/engines/sci/sfx/mixer.h
+++ b/engines/sci/sfx/mixer.h
@@ -32,6 +32,14 @@
#define SFX_PCM_FEED_MODE_ALIVE 0
#define SFX_PCM_FEED_MODE_DEAD 1
+/** Finitary unsigned rational numbers */
+struct sfx_pcm_urat_t {
+ int nom, den;
+ int val;
+
+ /* Total value: val + nom/den, where (nom < den) guaranteed. */
+};
+
struct twochannel_data {
int left, right;
};
@@ -49,7 +57,7 @@ typedef struct {
int mode; /* Whether the feed is alive or pending destruction */
int pending_review; /* Timestamp needs to be checked for this stream */
- struct twochannel_data ch_old, ch_new; /* Intermediate results of output computation */
+ twochannel_data ch_old, ch_new; /* Intermediate results of output computation */
} sfx_pcm_feed_state_t;