ScummVM API documentation
mixer.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef BACKENDS_MIXER_ABSTRACT_H
23 #define BACKENDS_MIXER_ABSTRACT_H
24 
25 #include "audio/mixer_intern.h"
26 
31 class MixerManager {
32 public:
33  MixerManager() : _mixer(0), _audioSuspended(false) {}
34  virtual ~MixerManager() { delete _mixer; }
35 
39  virtual void init() = 0;
40 
45 
46  // Used by LinuxMoto Port
47 
51  virtual void suspendAudio() = 0;
52 
56  virtual int resumeAudio() = 0;
57 
61  virtual bool isNullDevice() const { return false; }
62 
63 protected:
66 
69 };
70 
71 #endif
Audio::Mixer * getMixer()
Definition: mixer.h:44
virtual void init()=0
virtual bool isNullDevice() const
Definition: mixer.h:61
virtual void suspendAudio()=0
virtual int resumeAudio()=0
bool _audioSuspended
Definition: mixer.h:68
Definition: mixer_intern.h:58
Definition: mixer.h:59
Definition: mixer.h:31
Audio::MixerImpl * _mixer
Definition: mixer.h:65