aboutsummaryrefslogtreecommitdiff
path: root/queen/talk.h
diff options
context:
space:
mode:
authorJoost Peters2003-10-21 12:29:37 +0000
committerJoost Peters2003-10-21 12:29:37 +0000
commit5bcf5a901e6391d7f12f9792c71e63c5701492c1 (patch)
treeecec7aa3455e176a4881e634ace53bbcaadd84b3 /queen/talk.h
parent1744ba3441ff74b240ccf77e23da536c74bb4c28 (diff)
downloadscummvm-rg350-5bcf5a901e6391d7f12f9792c71e63c5701492c1.tar.gz
scummvm-rg350-5bcf5a901e6391d7f12f9792c71e63c5701492c1.tar.bz2
scummvm-rg350-5bcf5a901e6391d7f12f9792c71e63c5701492c1.zip
add Sound class + call it from Talk::speakSegment
svn-id: r10933
Diffstat (limited to 'queen/talk.h')
-rw-r--r--queen/talk.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/queen/talk.h b/queen/talk.h
index 26b6226112..48d493f8af 100644
--- a/queen/talk.h
+++ b/queen/talk.h
@@ -29,6 +29,7 @@ namespace Queen {
class Graphics;
class Logic;
class Resource;
+class Sound;
struct BobSlot;
class Talk {
@@ -41,7 +42,8 @@ class Talk {
char *cutawayFilename,
Graphics *graphics,
Logic *logic,
- Resource *resource);
+ Resource *resource,
+ Sound *sound);
//! Public interface to speak a sentence
static bool speak(
@@ -50,7 +52,8 @@ class Talk {
const char *voiceFilePrefix,
Graphics *graphics,
Logic *logic,
- Resource *resource);
+ Resource *resource,
+ Sound *sound);
//! Read a string from ptr and return new ptr
static byte *getString(byte *ptr, char *str, int maxLength, int align = 2);
@@ -107,6 +110,7 @@ class Talk {
Graphics *_graphics;
Logic *_logic;
Resource *_resource;
+ Sound *_sound;
//! Raw .dog file data (without 20 byte header)
byte *_fileData;
@@ -155,7 +159,7 @@ class Talk {
static const SpeechParameters _speechParameters[];
- Talk(Graphics *graphics, Logic *logic, Resource *resource);
+ Talk(Graphics *graphics, Logic *logic, Resource *resource, Sound *sound);
~Talk();
//! Perform talk in file and return a cutaway filename