This is very helpful!
But I'm stuck because I'm not really sure of what I'm doing with the code. Everytime I look for something related with sound and paste it trying it to work on the file I'm modyfing (string.cpp inside engines/scumm) I got messages when compiling like things not declared on this scope, logically.
At this point I'm on the code place where I can "freeeze" the time counter for the talkdelay, and here is where I want to load and send to the mixer the mp3 (or ogg, maybe better).
Maybe I have to declare at the start of string.cpp the audio before beeing able to load and play it, or something
This is what I tried the last:
Code: Select all
Audio::SeekableAudioStream *stream = Audio::SeekableAudioStream::openStreamFile("test.mp3");
if (stream) {
_mixer->playStream(Audio::Mixer::kMusicSoundType, &_musicHandle, Audio::makeLoopingAudioStream(stream, loops ? 0 : 1));
return;
}
I'm trying to just make a test.mp3 play, before trying to locate for specific filenames, but I have no luck because I'm kinda blind here. But I think the way must be not very different from this....
What I get here when trying to compile is:
'_musicHandle' was not declared in this scope
'loops' was not declared in this scope
But I can't replace them with another thing because I don't know what I have or can put there
