aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova2/resman.h
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-06-13 08:24:52 +0200
committerThierry Crozat2019-07-28 15:09:14 +0100
commita8ca6b9f5272a19956c722042ff6800d4b6985eb (patch)
treea0b65f5022cbf2cebdd703f2d028b4b8a37c88d9 /engines/supernova2/resman.h
parente7dbd78995aadd2e816a7c80ad2f792233bb76f5 (diff)
downloadscummvm-rg350-a8ca6b9f5272a19956c722042ff6800d4b6985eb.tar.gz
scummvm-rg350-a8ca6b9f5272a19956c722042ff6800d4b6985eb.tar.bz2
scummvm-rg350-a8ca6b9f5272a19956c722042ff6800d4b6985eb.zip
SUPERNOVA2: Simplify code for generating siren.
The code is now simpler, and generates better sound even with lower audio rate thanks to Criezy.
Diffstat (limited to 'engines/supernova2/resman.h')
-rw-r--r--engines/supernova2/resman.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/supernova2/resman.h b/engines/supernova2/resman.h
index 8d06c60448..6716bf53f1 100644
--- a/engines/supernova2/resman.h
+++ b/engines/supernova2/resman.h
@@ -25,6 +25,7 @@
#include "audio/audiostream.h"
#include "common/ptr.h"
+#include "common/sinetables.h"
#include "supernova2/graphics.h"
#include "supernova2/sound.h"
@@ -32,6 +33,7 @@
namespace Common {
class MemoryReadStream;
+class SineTable;
}
namespace Supernova2 {
@@ -62,7 +64,7 @@ private:
void initCursorGraphics();
void initImages();
void initSiren();
- byte *generateTone(byte *buffer, int frequency, int length, int audioRate);
+ byte *generateTone(byte *buffer, int frequency, int length, int audioRate, Common::SineTable &table);
private:
Common::ScopedPtr<Audio::SeekableAudioStream> _soundSamples[kAudioNumSamples];