[Scummvm-cvs-logs] CVS: scummvm/scumm player_v2a.cpp,2.24,2.25
kirben
kirben at users.sourceforge.net
Tue Feb 8 16:40:43 CET 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20826/scumm
Modified Files:
player_v2a.cpp
Log Message:
Index: player_v2a.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/player_v2a.cpp,v
retrieving revision 2.24
retrieving revision 2.25
diff -u -d -r2.24 -r2.25
--- player_v2a.cpp 9 Feb 2005 00:36:15 -0000 2.24
+++ player_v2a.cpp 9 Feb 2005 00:39:20 -0000 2.25
@@ -71,7 +71,7 @@
Player_MOD *_mod;
};
-// unsupported sound effect, print warning message to console
+// unsupported sound effect, print warning message to console
class V2A_Sound_Unsupported : public V2A_Sound {
public:
V2A_Sound_Unsupported() { }
@@ -82,7 +82,7 @@
virtual void stop() { }
};
-// template, automatically stops all channels when a sound is silenced
+// template, automatically stops all channels when a sound is silenced
template<int numChan>
class V2A_Sound_Base : public V2A_Sound {
public:
@@ -103,7 +103,7 @@
char *_data;
};
-// plays a music track
+// plays a music track
class V2A_Sound_Music : public V2A_Sound {
public:
V2A_Sound_Music(uint16 instoff, uint16 voloff, uint16 chan1off, uint16 chan2off, uint16 chan3off, uint16 chan4off, uint16 sampoff, bool looped) :
@@ -231,7 +231,7 @@
} _chan[4];
};
-// plays a single waveform
+// plays a single waveform
class V2A_Sound_Single : public V2A_Sound_Base<1> {
public:
V2A_Sound_Single(uint16 offset, uint16 size, uint16 freq, uint8 vol) :
@@ -260,7 +260,7 @@
int _ticks;
};
-// plays a single looped waveform
+// plays a single looped waveform
class V2A_Sound_SingleLooped : public V2A_Sound_Base<1> {
public:
V2A_Sound_SingleLooped(uint16 offset, uint16 size, uint16 freq, uint8 vol, uint16 loopoffset, uint16 loopsize) :
@@ -286,7 +286,7 @@
const uint8 _vol;
};
-// plays two looped waveforms
+// plays two looped waveforms
class V2A_Sound_MultiLooped : public V2A_Sound_Base<2> {
public:
V2A_Sound_MultiLooped(uint16 offset, uint16 size, uint16 freq1, uint8 vol1, uint16 freq2, uint8 vol2) :
@@ -314,7 +314,7 @@
const uint8 _vol2;
};
-// plays two looped waveforms for a fixed number of frames
+// plays two looped waveforms for a fixed number of frames
class V2A_Sound_MultiLoopedDuration : public V2A_Sound_MultiLooped {
public:
V2A_Sound_MultiLoopedDuration(uint16 offset, uint16 size, uint16 freq1, uint8 vol1, uint16 freq2, uint8 vol2, uint16 numframes) :
@@ -336,7 +336,7 @@
int _ticks;
};
-// plays a single looped waveform which starts at one frequency and bends to another frequency, where it remains until stopped
+// plays a single looped waveform which starts at one frequency and bends to another frequency, where it remains until stopped
class V2A_Sound_SingleLoopedPitchbend : public V2A_Sound_Base<1> {
public:
V2A_Sound_SingleLoopedPitchbend(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint8 vol, uint8 step) :
@@ -376,7 +376,7 @@
uint16 _curfreq;
};
-// plays a single looped waveform starting at a specific frequency/volume, dropping in frequency and fading volume to zero
+// plays a single looped waveform starting at a specific frequency/volume, dropping in frequency and fading volume to zero
class V2A_Sound_Special_FastPitchbendDownAndFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_FastPitchbendDownAndFadeout(uint16 offset, uint16 size, uint16 freq, uint8 vol) :
@@ -388,7 +388,7 @@
memcpy(tmp_data, data + _offset, _size);
_curvol = (_vol << 3) | (_vol >> 3);
_curfreq = _freq;
- _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _curfreq, _curvol >> 1, 0, _size);
+ _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _curfreq, _curvol >> 1, 0, _size);
}
virtual bool update() {
assert(_id);
@@ -408,7 +408,7 @@
uint16 _curvol;
};
-// plays a single looped waveform, fading the volume from zero to maximum at one rate, then back to zero at another rate
+// plays a single looped waveform, fading the volume from zero to maximum at one rate, then back to zero at another rate
class V2A_Sound_Special_LoopedFadeinFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_LoopedFadeinFadeout(uint16 offset, uint16 size, uint16 freq, uint8 fadeinrate, uint8 fadeoutrate) :
@@ -420,7 +420,7 @@
memcpy(tmp_data, data + _offset, _size);
_curvol = 1;
_dir = 0;
- _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _freq, _curvol, 0, _size);
+ _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _freq, _curvol, 0, _size);
}
virtual bool update() {
assert(_id);
@@ -447,7 +447,7 @@
int _dir;
};
-// plays two looped waveforms, fading the volume from zero to maximum at one rate, then back to zero at another rate
+// plays two looped waveforms, fading the volume from zero to maximum at one rate, then back to zero at another rate
class V2A_Sound_Special_MultiLoopedFadeinFadeout : public V2A_Sound_Base<2> {
public:
V2A_Sound_Special_MultiLoopedFadeinFadeout(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint8 fadeinrate, uint8 fadeoutrate) :
@@ -491,7 +491,7 @@
int _dir;
};
-// plays a single looped waveform, starting at one frequency and at full volume, bending down to another frequency, and then fading volume to zero
+// plays a single looped waveform, starting at one frequency and at full volume, bending down to another frequency, and then fading volume to zero
class V2A_Sound_Special_PitchbendDownThenFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_PitchbendDownThenFadeout(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint16 step) :
@@ -525,7 +525,7 @@
int _curvol;
};
-// plays a single looped waveform, starting at one frequency, bending down to another frequency, and then back up to the original frequency
+// plays a single looped waveform, starting at one frequency, bending down to another frequency, and then back up to the original frequency
class V2A_Sound_Special_PitchbendDownAndBackUp : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_PitchbendDownAndBackUp(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint16 step, uint8 vol) :
@@ -569,7 +569,7 @@
int _dir;
};
-// plays a single looped waveform, simultaneously bending the frequency downward and slowly fading volume to zero
+// plays a single looped waveform, simultaneously bending the frequency downward and slowly fading volume to zero
class V2A_Sound_Special_SlowPitchbendDownAndFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SlowPitchbendDownAndFadeout(uint16 offset, uint16 size, uint16 freq1, uint16 freq2) :
@@ -602,7 +602,7 @@
uint8 _curvol;
};
-// intermittently plays two looped waveforms for a specific duration (ringing phone)
+// intermittently plays two looped waveforms for a specific duration (ringing phone)
class V2A_Sound_Special_MultiLoopedDurationMulti : public V2A_Sound_Base<2> {
public:
V2A_Sound_Special_MultiLoopedDurationMulti(uint16 offset, uint16 size, uint16 freq1, uint8 vol1, uint16 freq2, uint8 vol2, uint16 numframes, uint8 playwidth, uint8 loopwidth) :
@@ -656,7 +656,7 @@
}
};
-// intermittently plays a single waveform for a specified duration (using wrench on pipe)
+// intermittently plays a single waveform for a specified duration (using wrench on pipe)
class V2A_Sound_Special_SingleDurationMulti : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SingleDurationMulti(uint16 offset, uint16 size, uint16 freq, uint8 vol, uint8 loopwidth, uint8 numloops) :
@@ -699,7 +699,7 @@
}
};
-// plays a single waveform at irregular intervals for a specified number of frames, possibly looped (typewriter)
+// plays a single waveform at irregular intervals for a specified number of frames, possibly looped (typewriter)
class V2A_Sound_Special_SingleDurationMultiDurations : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SingleDurationMultiDurations(uint16 offset, uint16 size, uint16 freq, uint8 vol, uint8 numdurs, const uint8 *durations, bool looped) :
@@ -746,7 +746,7 @@
}
};
-// plays two looped waveforms pitch bending up at various predefined rates (siren)
+// plays two looped waveforms pitch bending up at various predefined rates (siren)
class V2A_Sound_Special_TwinSirenMulti : public V2A_Sound_Base<2> {
public:
V2A_Sound_Special_TwinSirenMulti(uint16 offset1, uint16 size1, uint16 offset2, uint16 size2, uint16 freq1, uint16 freq2, uint8 vol) :
@@ -810,7 +810,7 @@
}
};
-// plays 4 looped waveforms, each at modulating frequencies (siren)
+// plays 4 looped waveforms, each at modulating frequencies (siren)
class V2A_Sound_Special_QuadSiren : public V2A_Sound_Base<4> {
public:
V2A_Sound_Special_QuadSiren(uint16 offset1, uint16 size1, uint16 offset2, uint16 size2, uint8 vol) :
@@ -882,7 +882,7 @@
}
};
-// plays 4 looped waveforms
+// plays 4 looped waveforms
class V2A_Sound_Special_QuadFreqLooped : public V2A_Sound_Base<4> {
public:
V2A_Sound_Special_QuadFreqLooped(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint16 freq3, uint16 freq4, uint8 vol) :
@@ -916,7 +916,7 @@
const uint8 _vol;
};
-// plays 4 looped waveforms and fades volume to zero after a specific delay
+// plays 4 looped waveforms and fades volume to zero after a specific delay
class V2A_Sound_Special_QuadFreqFadeout : public V2A_Sound_Special_QuadFreqLooped {
public:
V2A_Sound_Special_QuadFreqFadeout(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint16 freq3, uint16 freq4, uint8 vol, uint16 dur) :
@@ -943,7 +943,7 @@
int _ticks;
};
-// plays a single looped waveform and slowly fades volume to zero
+// plays a single looped waveform and slowly fades volume to zero
class V2A_Sound_Special_SingleFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SingleFadeout(uint16 offset, uint16 size, uint16 freq, uint8 vol) :
@@ -954,7 +954,7 @@
char *tmp_data = (char *)malloc(_size);
memcpy(tmp_data, data + _offset, _size);
_curvol = _vol << 2;
- _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _freq, _curvol, 0, _size);
+ _mod->startChannel(_id, tmp_data, _size, BASE_FREQUENCY / _freq, _curvol, 0, _size);
}
virtual bool update() {
assert(_id);
@@ -970,7 +970,7 @@
int _curvol;
};
-// plays a single looped waveform, slowly bending from one frequency to another and then slowly fading volume from max to zero
+// plays a single looped waveform, slowly bending from one frequency to another and then slowly fading volume from max to zero
class V2A_Sound_Special_SlowPitchbendThenSlowFadeout : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SlowPitchbendThenSlowFadeout(uint16 offset, uint16 size, uint16 freq1, uint16 freq2) :
@@ -1073,7 +1073,7 @@
uint8 _vol;
};
-// plays a single looped waveform, bending the frequency upward at a varying rate (slowly accelerating vehicle)
+// plays a single looped waveform, bending the frequency upward at a varying rate (slowly accelerating vehicle)
class V2A_Sound_Special_SteppedPitchbendAndHold : public V2A_Sound_Base<1> {
public:
V2A_Sound_Special_SteppedPitchbendAndHold(uint16 offset, uint16 size, uint16 freq1, uint16 freq2, uint8 vol) :
More information about the Scummvm-git-logs
mailing list