aboutsummaryrefslogtreecommitdiff
path: root/scumm/player_v1.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_v1.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_v1.h')
-rw-r--r--scumm/player_v1.h35
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;