diff options
author | Martin Kiewitz | 2010-01-09 18:18:52 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-09 18:18:52 +0000 |
commit | 30d787a829693a1fbffc6592fa70c7818dfb8ed7 (patch) | |
tree | 0495d887f461c87b178b60e0535c940db0cda069 /engines/sci/graphics/portrait.h | |
parent | a815d0e12a42b8880b5f629d6053f96139a46acc (diff) | |
download | scummvm-rg350-30d787a829693a1fbffc6592fa70c7818dfb8ed7.tar.gz scummvm-rg350-30d787a829693a1fbffc6592fa70c7818dfb8ed7.tar.bz2 scummvm-rg350-30d787a829693a1fbffc6592fa70c7818dfb8ed7.zip |
SCI: adding audio support to kPortrait, audio is now playing when portraits are shown
svn-id: r47202
Diffstat (limited to 'engines/sci/graphics/portrait.h')
-rw-r--r-- | engines/sci/graphics/portrait.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/portrait.h b/engines/sci/graphics/portrait.h index 41c4bfef72..847ed9f2dc 100644 --- a/engines/sci/graphics/portrait.h +++ b/engines/sci/graphics/portrait.h @@ -30,9 +30,10 @@ namespace Sci { class Portrait { public: - Portrait(ResourceManager *resMan, Screen *screen, SciPalette *palette, Common::String resourceName); + Portrait(ResourceManager *resMan, Screen *screen, SciPalette *palette, AudioPlayer *audio, Common::String resourceName); ~Portrait(); + void setupAudio(uint16 resourceId, uint16 noun, uint16 verb, uint16 cond, uint16 seq); void draw(Common::Point position); private: @@ -41,6 +42,7 @@ private: ResourceManager *_resMan; Screen *_screen; SciPalette *_palette; + AudioPlayer *_audio; Common::String _resourceName; Common::String _fileName; |