2007-05-30 21:56:52 +00: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.
|
2003-05-12 23:25:54 +00:00
|
|
|
*
|
|
|
|
* 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.
|
2014-02-18 02:34:25 +01:00
|
|
|
*
|
2003-05-12 23:25:54 +00:00
|
|
|
* 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.
|
2014-02-18 02:34:25 +01:00
|
|
|
*
|
2003-05-12 23:25:54 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2003-05-12 23:25:54 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-02-20 17:52:55 +00:00
|
|
|
#ifndef SKY_MUSIC_MT32MUSIC_H
|
|
|
|
#define SKY_MUSIC_MT32MUSIC_H
|
2003-05-12 23:25:54 +00:00
|
|
|
|
2003-10-05 20:21:20 +00:00
|
|
|
#include "sky/music/musicbase.h"
|
|
|
|
|
|
|
|
class MidiDriver;
|
2003-05-12 23:25:54 +00:00
|
|
|
|
2004-01-03 01:58:58 +00:00
|
|
|
namespace Sky {
|
|
|
|
|
2004-01-03 15:57:57 +00:00
|
|
|
class MT32Music : public MusicBase {
|
2003-05-12 23:25:54 +00:00
|
|
|
public:
|
2011-11-14 20:39:00 +01:00
|
|
|
MT32Music(MidiDriver *pMidiDrv, Audio::Mixer *pMixer, Disk *pDisk);
|
2009-11-02 21:54:57 +00:00
|
|
|
~MT32Music();
|
2003-05-12 23:25:54 +00:00
|
|
|
private:
|
|
|
|
static void passTimerFunc(void *param);
|
2009-11-02 21:54:57 +00:00
|
|
|
void timerCall();
|
2003-05-12 23:25:54 +00:00
|
|
|
bool processPatchSysEx(uint8 *sysExData);
|
2007-03-18 14:08:34 +00:00
|
|
|
virtual void setVolume(uint16 volume);
|
2003-05-12 23:25:54 +00:00
|
|
|
|
2004-10-22 05:34:18 +00:00
|
|
|
uint32 _timerCount;
|
2003-05-12 23:25:54 +00:00
|
|
|
uint8 *_sysExSequence;
|
|
|
|
MidiDriver *_midiDrv;
|
|
|
|
|
2009-11-02 21:54:57 +00:00
|
|
|
virtual void setupPointers();
|
2003-05-12 23:25:54 +00:00
|
|
|
virtual void setupChannels(uint8 *channelData);
|
2009-11-02 21:54:57 +00:00
|
|
|
virtual void startDriver();
|
2003-05-12 23:25:54 +00:00
|
|
|
};
|
|
|
|
|
2004-01-03 01:58:58 +00:00
|
|
|
} // End of namespace Sky
|
|
|
|
|
2003-05-12 23:25:54 +00:00
|
|
|
#endif //MT32MUSIC_H
|