scummvm/backends/mixer/maxmod/maxmod-mixer.h

61 lines
1.6 KiB
C
Raw Normal View History

2020-08-23 16:01:19 +01:00
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef BACKENDS_MIXER_MAXMOD_H
#define BACKENDS_MIXER_MAXMOD_H
2020-09-15 20:02:53 +01:00
#include "backends/mixer/mixer.h"
#include <mm_types.h>
2020-08-23 16:01:19 +01:00
/**
* MaxMod mixer manager. It wraps the actual implementation
* of the Audio:Mixer used by the engine, and sets up
* MaxMod and the callback for the audio mixer implementation.
*/
2020-09-15 20:02:53 +01:00
class MaxModMixerManager : public MixerManager {
2020-08-23 16:01:19 +01:00
public:
MaxModMixerManager(int freq, int bufSize);
virtual ~MaxModMixerManager();
/**
* Initialize and setups the mixer
*/
virtual void init();
/**
2020-09-15 20:02:53 +01:00
* Pauses the audio system
2020-08-23 16:01:19 +01:00
*/
2020-09-15 20:02:53 +01:00
virtual void suspendAudio();
2020-08-23 16:01:19 +01:00
2020-09-15 20:02:53 +01:00
/**
* Resumes the audio system
*/
virtual int resumeAudio();
2020-08-23 16:01:19 +01:00
2020-09-15 20:02:53 +01:00
protected:
mm_stream _stream;
2020-08-23 16:01:19 +01:00
int _freq, _bufSize;
};
#endif