LMMS
Loading...
Searching...
No Matches
got.h
Go to the documentation of this file.
1/*
2 * Adplug - Replayer for many OPL2/OPL3 audio file formats.
3 * Copyright (C) 1999 - 2005 Simon Peter <dn.tlp@gmx.net>, et al.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * got.h - GOT Player by Stas'M <binarymaster@mail.ru>
20 *
21 * Based on IMF Player by Simon Peter <dn.tlp@gmx.net>
22 *
23 * REFERENCES:
24 * http://www.shikadi.net/moddingwiki/God_of_Thunder_Music_Format
25 */
26
27#ifndef H_ADPLUG_GOTPLAYER
28#define H_ADPLUG_GOTPLAYER
29
30#include "player.h"
31
32class CgotPlayer: public CPlayer
33{
34public:
35 static CPlayer *factory(Copl *newopl);
36
38 : CPlayer(newopl), data(0)
39 { }
41 {
42 if(data) delete [] data;
43 };
44
45 bool load(const std::string &filename, const CFileProvider &fp);
46 bool update();
47 void rewind(int subsong);
48
49 float getrefresh()
50 {
51 return timer;
52 };
53
54 std::string gettype()
55 {
56 return std::string("God of Thunder Music");
57 }
58
59protected:
60 unsigned long pos, size;
61 unsigned short del;
62 bool songend;
63 float rate, timer;
64
65 struct Sdata {
66 unsigned char time;
67 unsigned char reg, val;
68 } *data;
69};
70
71#endif
Definition fprovide.h:29
CPlayer(Copl *newopl)
Definition player.cpp:34
unsigned long size
Definition got.h:60
~CgotPlayer()
Definition got.h:40
float getrefresh()
Definition got.h:49
float timer
Definition got.h:63
float rate
Definition got.h:63
struct CgotPlayer::Sdata * data
static CPlayer * factory(Copl *newopl)
Definition got.cpp:34
unsigned short del
Definition got.h:61
bool songend
Definition got.h:62
unsigned long pos
Definition got.h:60
std::string gettype()
Definition got.h:54
bool update()
Definition got.cpp:94
void rewind(int subsong)
Definition got.cpp:111
bool load(const std::string &filename, const CFileProvider &fp)
Definition got.cpp:39
CgotPlayer(Copl *newopl)
Definition got.h:37
Definition opl.h:26
static char filename[]
Definition features.c:5
JSAMPIMAGE data
Definition jpeglib.h:945
Definition got.h:65
unsigned char val
Definition got.h:67
unsigned char reg
Definition got.h:67
unsigned char time
Definition got.h:66