diff options
| author | lukaslw | 2014-06-15 17:59:13 +0200 | 
|---|---|---|
| committer | lukaslw | 2014-06-22 20:09:08 +0200 | 
| commit | 85108d6fb2ab91a6f9ae15db404f399f846407ee (patch) | |
| tree | 85b1b4ac0f68c55df81a14e6ef8566b344e5175f | |
| parent | e3b5c0ecccd6516fca4dec1b487042b2bcaab9c7 (diff) | |
| download | scummvm-rg350-85108d6fb2ab91a6f9ae15db404f399f846407ee.tar.gz scummvm-rg350-85108d6fb2ab91a6f9ae15db404f399f846407ee.tar.bz2 scummvm-rg350-85108d6fb2ab91a6f9ae15db404f399f846407ee.zip | |
PRINCE: Voices for inventory exam texts
| -rw-r--r-- | engines/prince/prince.cpp | 9 | ||||
| -rw-r--r-- | engines/prince/prince.h | 1 | 
2 files changed, 3 insertions, 7 deletions
| diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 6d6f3fe8ef..0cfe9d6cd6 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -475,10 +475,6 @@ void PrinceEngine::playSample(uint16 sampleId, uint16 loopType) {  	}  } -void PrinceEngine::setSpecVoice() { - -} -  void PrinceEngine::stopSample(uint16 sampleId) {  	_mixer->stopID(sampleId);  	_voiceStream[sampleId] = nullptr; @@ -866,7 +862,7 @@ void PrinceEngine::showTexts(Graphics::Surface *screen) {  			);  		} -		--text._time; +		text._time--;  		if (text._time == 0) {  			text._str = nullptr;  		} @@ -1654,7 +1650,8 @@ void PrinceEngine::inventoryLeftMouseButton() {  		if (invObjExamEvent == -1) {  			// do_standard  			printAt(0, 216, _invMobList[_selectedMob - 1]._examText.c_str(), kNormalWidth / 2, _invExamY); -			setSpecVoice(); +			loadVoice(0, 28, Common::String::format("inv%02d-01.WAV", _invMobList[_selectedMob - 1]._mask)); +			playSample(28, 0);  			// disableuseuse  			changeCursor(0);  			_currentPointerNumber = 1; diff --git a/engines/prince/prince.h b/engines/prince/prince.h index 0f541517cb..d3843e78cf 100644 --- a/engines/prince/prince.h +++ b/engines/prince/prince.h @@ -239,7 +239,6 @@ public:  	void playSample(uint16 sampleId, uint16 loopType);  	void stopSample(uint16 sampleId); -	void setSpecVoice();  	virtual GUI::Debugger *getDebugger(); | 
