diff options
author | athrxx | 2019-01-14 21:46:04 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:20 +0100 |
commit | 4cc9c81a75f73216ba98b3744a32c900aad36061 (patch) | |
tree | 1b8e3b42aa9ec04621e4673daddfc4a657f4c1e3 /engines/kyra/sound/drivers/audiomaster2.h | |
parent | f0a305316c716dfadc332eb8df4c95a5e6e6cdb6 (diff) | |
download | scummvm-rg350-4cc9c81a75f73216ba98b3744a32c900aad36061.tar.gz scummvm-rg350-4cc9c81a75f73216ba98b3744a32c900aad36061.tar.bz2 scummvm-rg350-4cc9c81a75f73216ba98b3744a32c900aad36061.zip |
KYRA: (EOB1/Amiga) - add sound driver
Diffstat (limited to 'engines/kyra/sound/drivers/audiomaster2.h')
-rw-r--r-- | engines/kyra/sound/drivers/audiomaster2.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/engines/kyra/sound/drivers/audiomaster2.h b/engines/kyra/sound/drivers/audiomaster2.h new file mode 100644 index 0000000000..d20048cc1f --- /dev/null +++ b/engines/kyra/sound/drivers/audiomaster2.h @@ -0,0 +1,78 @@ +/* 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. + * + * LGPL License + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef KYRA_SOUND_AUDIOMASTER2_H +#define KYRA_SOUND_AUDIOMASTER2_H + +namespace Audio { + class Mixer; +} + +namespace Common { + class SeekableReadStream; + class String; +} + +namespace Kyra { + +class AudioMaster2Internal; + +class AudioMaster2 { +public: + AudioMaster2(Audio::Mixer *mixer); + ~AudioMaster2(); + + bool init(); + bool loadRessourceFile(Common::SeekableReadStream *data); + + bool startSound(const Common::String &name); + bool stopSound(const Common::String &name); + + void flushResource(const Common::String &name); + void flushAllResources(); + + void setMusicVolume(int volume) {} + void setSoundEffectVolume(int volume) {} + +private: + AudioMaster2Internal *_am2i; +}; + +} // End of namespace Kyra + +#endif |