HDB: Add _sound stubs

This commit is contained in:
Nipun Garg 2019-07-14 00:10:53 +05:30 committed by Eugene Sandulenko
parent e0f49e8aee
commit ff5b6d830a
2 changed files with 19 additions and 1 deletions

View File

@ -61,6 +61,16 @@ bool Sound::startMusic(SoundType song) {
return true;
}
bool Sound::fadeInMusic(SoundType song, int ramp) {
warning("STUB: Fade In Music");
return true;
}
void Sound::fadeOutMusic(int ramp) {
warning("STUB: Fade Out Music");
return;
}
bool Sound::songPlaying(SoundType song) {
warning("STUB: Check if Song is playing");
return true;
@ -75,6 +85,11 @@ void Sound::stopMusic() {
debug(9, "STUB: Stop Music");
}
int Sound::registerSound(const char *name) {
debug(9, "STUB: Register Sound");
return 0;
}
bool Sound::freeSound(int index) {
debug(9, "STUB: Free Sound");
return true;

View File

@ -1417,9 +1417,12 @@ public:
bool playSoundEx(int index, int channel, bool loop);
bool playVoice(int index, int actor);
bool startMusic(SoundType song);
bool fadeInMusic(SoundType song, int ramp);
void fadeOutMusic(int ramp);
void stopMusic();
bool songPlaying(SoundType song);
bool stopChannel(int channel);
void stopMusic();
int registerSound(const char *name);
bool freeSound(int index);
SoundType whatSongIsPlaying();