Skip to content

Commit

Permalink
PRINCE: Voices for inventory exam texts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jun 22, 2014
1 parent e3b5c0e commit 85108d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions engines/prince/prince.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -866,7 +862,7 @@ void PrinceEngine::showTexts(Graphics::Surface *screen) {
);
}

--text._time;
text._time--;
if (text._time == 0) {
text._str = nullptr;
}
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion engines/prince/prince.h
Expand Up @@ -239,7 +239,6 @@ class PrinceEngine : public Engine {

void playSample(uint16 sampleId, uint16 loopType);
void stopSample(uint16 sampleId);
void setSpecVoice();

virtual GUI::Debugger *getDebugger();

Expand Down

0 comments on commit 85108d6

Please sign in to comment.