aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-02-26 20:44:39 +0000
committerMax Horn2007-02-26 20:44:39 +0000
commitac719ac5fd2390bb8c5021a3222667a5b8f3383b (patch)
tree410010e2450507b5c9ad1e0aeb9a3dd1a72edeec
parent73188b47161462e8de10539bc64a58ee11563a84 (diff)
downloadscummvm-rg350-ac719ac5fd2390bb8c5021a3222667a5b8f3383b.tar.gz
scummvm-rg350-ac719ac5fd2390bb8c5021a3222667a5b8f3383b.tar.bz2
scummvm-rg350-ac719ac5fd2390bb8c5021a3222667a5b8f3383b.zip
More dead code; augmented note on PC speaker emulation
svn-id: r25885
-rw-r--r--engines/gob/sound.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gob/sound.h b/engines/gob/sound.h
index 2ce4f3cd3d..0a574ef06c 100644
--- a/engines/gob/sound.h
+++ b/engines/gob/sound.h
@@ -43,8 +43,6 @@ public:
inClocks(0), frequency(0), flag(0) {}
};
- typedef void (*CleanupFuncPtr) (int16);
-
char _playingSound;
Snd(GobEngine *vm);
@@ -74,6 +72,9 @@ public:
protected:
// TODO: This is a very primitive square wave generator. The only thing is
// has in common with the PC speaker is that it sounds terrible.
+ // Note: The SCUMM code has a PC speaker implementations; maybe it could be
+ // refactored to be reusable by all engines. And DosBox also has code
+ // for emulating the PC speaker.
class SquareWaveStream : public Audio::AudioStream {
private:
uint _rate;
@@ -86,7 +87,6 @@ protected:
public:
SquareWaveStream();
- ~SquareWaveStream() {}
void playNote(int freq, int32 ms, uint rate);
void update(uint32 milis);