diff options
author | Max Horn | 2003-10-03 23:34:06 +0000 |
---|---|---|
committer | Max Horn | 2003-10-03 23:34:06 +0000 |
commit | ad293a5ab8bf59f9535a4e8fbb3681c76f28128e (patch) | |
tree | d622de229789fe7258d36fcf4ffec6892a2e4de1 /scumm/player_v1.h | |
parent | c3d84b1a14b787ba9037b71f11d601d6e40fb4f7 (diff) | |
download | scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.gz scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.bz2 scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.zip |
cleanup / doxygenification
svn-id: r10578
Diffstat (limited to 'scumm/player_v1.h')
-rw-r--r-- | scumm/player_v1.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/scumm/player_v1.h b/scumm/player_v1.h index ce9b7ddfdb..83a901ea75 100644 --- a/scumm/player_v1.h +++ b/scumm/player_v1.h @@ -27,23 +27,9 @@ namespace Scumm { -#define FB_WNOISE 0x12000 /* feedback for white noise */ -#define FB_PNOISE 0x08000 /* feedback for periodic noise */ - -struct channel_data_v1 { - uint freq; - uint volume; - byte *cmd_ptr; - uint notelen; - uint hull_counter; - uint attack; - uint decay; - uint level; - uint sustain_1; - uint sustain_2; - int sustctr; -}; - +/** + * V1 PC-Speaker player. + */ class Player_V1 : public Player_V2 { public: Player_V1(ScummEngine *scumm); @@ -63,7 +49,6 @@ protected: virtual void generatePCjrSamples(int16 *data, uint len); void restartSound(); - void next_speaker_cmd(ChannelInfo *channel); void set_mplex(uint mplex); void parseSpeakerChunk(); @@ -72,6 +57,20 @@ protected: void nextPCjrCmd(); private: + struct channel_data_v1 { + uint freq; + uint volume; + byte *cmd_ptr; + uint notelen; + uint hull_counter; + uint attack; + uint decay; + uint level; + uint sustain_1; + uint sustain_2; + int sustctr; + }; + channel_data_v1 _channels[4]; byte *_next_chunk; |