LMMS
Loading...
Searching...
No Matches
plugins
OpulenZ
adplug
src
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
32
class
CgotPlayer
:
public
CPlayer
33
{
34
public
:
35
static
CPlayer
*
factory
(
Copl
*newopl);
36
37
CgotPlayer
(
Copl
*newopl)
38
:
CPlayer
(newopl),
data
(0)
39
{ }
40
~CgotPlayer
()
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
59
protected
:
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
CFileProvider
Definition
fprovide.h:29
CPlayer::CPlayer
CPlayer(Copl *newopl)
Definition
player.cpp:34
CgotPlayer::size
unsigned long size
Definition
got.h:60
CgotPlayer::~CgotPlayer
~CgotPlayer()
Definition
got.h:40
CgotPlayer::getrefresh
float getrefresh()
Definition
got.h:49
CgotPlayer::timer
float timer
Definition
got.h:63
CgotPlayer::rate
float rate
Definition
got.h:63
CgotPlayer::data
struct CgotPlayer::Sdata * data
CgotPlayer::factory
static CPlayer * factory(Copl *newopl)
Definition
got.cpp:34
CgotPlayer::del
unsigned short del
Definition
got.h:61
CgotPlayer::songend
bool songend
Definition
got.h:62
CgotPlayer::pos
unsigned long pos
Definition
got.h:60
CgotPlayer::gettype
std::string gettype()
Definition
got.h:54
CgotPlayer::update
bool update()
Definition
got.cpp:94
CgotPlayer::rewind
void rewind(int subsong)
Definition
got.cpp:111
CgotPlayer::load
bool load(const std::string &filename, const CFileProvider &fp)
Definition
got.cpp:39
CgotPlayer::CgotPlayer
CgotPlayer(Copl *newopl)
Definition
got.h:37
Copl
Definition
opl.h:26
filename
static char filename[]
Definition
features.c:5
data
JSAMPIMAGE data
Definition
jpeglib.h:945
player.h
CgotPlayer::Sdata
Definition
got.h:65
CgotPlayer::Sdata::val
unsigned char val
Definition
got.h:67
CgotPlayer::Sdata::reg
unsigned char reg
Definition
got.h:67
CgotPlayer::Sdata::time
unsigned char time
Definition
got.h:66
Generated on
for LMMS by
1.16.1