mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Implemented music pause and resume
svn-id: r28698
This commit is contained in:
parent
cd3f8577c1
commit
d4d255cd6d
@ -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) {
|
||||
|
@ -50,6 +50,7 @@ public:
|
||||
~MusicPlayer();
|
||||
|
||||
bool isPlaying() { return _isPlaying; }
|
||||
void setPlaying(bool playing) { _isPlaying = playing; }
|
||||
|
||||
void setVolume(int volume);
|
||||
int getVolume() { return _masterVolume; }
|
||||
|
Loading…
Reference in New Issue
Block a user