Implemented music pause and resume

svn-id: r28698
This commit is contained in:
Filippos Karapetis 2007-08-22 16:00:45 +00:00
parent cd3f8577c1
commit d4d255cd6d
2 changed files with 5 additions and 2 deletions

View File

@ -578,11 +578,13 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
}
void Music::pause(void) {
//TODO: do it
_player->setVolume(-1);
_player->setPlaying(false);
}
void Music::resume(void) {
//TODO: do it}
_player->setVolume(_vm->_musicVolume == 10 ? 255 : _vm->_musicVolume * 25);
_player->setPlaying(true);
}
void Music::stop(void) {

View File

@ -50,6 +50,7 @@ public:
~MusicPlayer();
bool isPlaying() { return _isPlaying; }
void setPlaying(bool playing) { _isPlaying = playing; }
void setVolume(int volume);
int getVolume() { return _masterVolume; }