now SmushPlayer is class created once same as SmushMixer while scumm engine creation. this allow finish play smush audio track finished to the end instead immediately stopped as it was happen before

svn-id: r24263
This commit is contained in:
Paweł Kołodziejski 2006-10-10 12:16:21 +00:00
parent 89f79acb84
commit e85ab4b10f
8 changed files with 36 additions and 29 deletions

View file

@ -1176,9 +1176,7 @@ void ScummEngine_v8::o8_systemOps() {
void ScummEngine_v8::o8_startVideo() {
int len = resStrLen(_scriptPointer);
SmushPlayer *sp = new SmushPlayer(this, 12);
sp->play((const char*)_scriptPointer);
delete sp;
_splayer->play((const char*)_scriptPointer, 12);
_scriptPointer += len + 1;
}