aboutsummaryrefslogtreecommitdiff
path: root/scumm/player_mod.h
diff options
context:
space:
mode:
authorMax Horn2003-10-03 23:34:06 +0000
committerMax Horn2003-10-03 23:34:06 +0000
commitad293a5ab8bf59f9535a4e8fbb3681c76f28128e (patch)
treed622de229789fe7258d36fcf4ffec6892a2e4de1 /scumm/player_mod.h
parentc3d84b1a14b787ba9037b71f11d601d6e40fb4f7 (diff)
downloadscummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.gz
scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.bz2
scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.zip
cleanup / doxygenification
svn-id: r10578
Diffstat (limited to 'scumm/player_mod.h')
-rw-r--r--scumm/player_mod.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/scumm/player_mod.h b/scumm/player_mod.h
index bdc4bc5cf0..b48bc07cbe 100644
--- a/scumm/player_mod.h
+++ b/scumm/player_mod.h
@@ -30,8 +30,9 @@
namespace Scumm {
-#define MOD_MAXCHANS 16
-
+/**
+ * Generic Amiga MOD mixer - provides a 60Hz 'update' routine.
+ */
class Player_MOD {
public:
Player_MOD(ScummEngine *scumm);
@@ -50,11 +51,9 @@ public:
virtual void clearUpdateProc();
private:
- SoundMixer *_mixer;
-
- uint32 _mixamt;
- uint32 _mixpos;
- int _samplerate;
+ enum {
+ MOD_MAXCHANS = 16
+ };
struct soundChan
{
@@ -66,6 +65,13 @@ private:
RateConverter *converter;
AudioInputStream *input;
};
+
+ SoundMixer *_mixer;
+
+ uint32 _mixamt;
+ uint32 _mixpos;
+ int _samplerate;
+
soundChan _channels[MOD_MAXCHANS];
uint8 _maxvol;