LMMS
Loading...
Searching...
No Matches
plugins
OpulenZ
adplug
src
dro2.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
* dro2.h - DOSBox Raw OPL v2.0 player by Adam Nielsen <malvineous@shikadi.net>
20
*/
21
22
/*
23
* Copyright (c) 2017 Wraithverge <liam82067@yahoo.com>
24
* - Realigned and re-ordered sections.
25
* - Removed unused garbage.
26
* - Finalized support for displaying arbitrary Tag data.
27
*/
28
29
#include <stdint.h>
// for uintxx_t
30
#include "
player.h
"
31
32
class
Cdro2Player
:
public
CPlayer
33
{
34
protected
:
35
uint8_t
iCmdDelayS
,
iCmdDelayL
;
36
int
iConvTableLen
;
37
uint8_t
*
piConvTable
;
38
39
uint8_t
*
data
;
40
int
iLength
;
41
int
iPos
;
42
int
iDelay
;
43
44
private
:
45
char
title
[40];
46
char
author
[40];
47
char
desc
[1023];
48
49
public
:
50
static
CPlayer
*
factory
(
Copl
*newopl);
51
52
Cdro2Player
(
Copl
*newopl);
53
~Cdro2Player
();
54
55
bool
load
(
const
std::string &
filename
,
const
CFileProvider
&fp);
56
bool
update
();
57
void
rewind
(
int
subsong);
58
float
getrefresh
();
59
60
std::string
gettype
()
61
{
62
return
std::string(
"DOSBox Raw OPL v2.0"
);
63
}
64
65
std::string
gettitle
() {
return
std::string(
title
, 0, 40); };
66
std::string
getauthor
() {
return
std::string(
author
, 0, 40); };
67
std::string
getdesc
() {
return
std::string(
desc
, 0, 1023); };
68
};
CFileProvider
Definition
fprovide.h:29
CPlayer::CPlayer
CPlayer(Copl *newopl)
Definition
player.cpp:34
Cdro2Player::gettype
std::string gettype()
Definition
dro2.h:60
Cdro2Player::desc
char desc[1023]
Definition
dro2.h:47
Cdro2Player::update
bool update()
Definition
dro2.cpp:135
Cdro2Player::data
uint8_t * data
Definition
dro2.h:39
Cdro2Player::~Cdro2Player
~Cdro2Player()
Definition
dro2.cpp:44
Cdro2Player::iDelay
int iDelay
Definition
dro2.h:42
Cdro2Player::load
bool load(const std::string &filename, const CFileProvider &fp)
Definition
dro2.cpp:50
Cdro2Player::getauthor
std::string getauthor()
Definition
dro2.h:66
Cdro2Player::iCmdDelayL
uint8_t iCmdDelayL
Definition
dro2.h:35
Cdro2Player::getdesc
std::string getdesc()
Definition
dro2.h:67
Cdro2Player::iConvTableLen
int iConvTableLen
Definition
dro2.h:36
Cdro2Player::gettitle
std::string gettitle()
Definition
dro2.h:65
Cdro2Player::iPos
int iPos
Definition
dro2.h:41
Cdro2Player::author
char author[40]
Definition
dro2.h:46
Cdro2Player::factory
static CPlayer * factory(Copl *newopl)
Definition
dro2.cpp:32
Cdro2Player::rewind
void rewind(int subsong)
Definition
dro2.cpp:175
Cdro2Player::title
char title[40]
Definition
dro2.h:45
Cdro2Player::getrefresh
float getrefresh()
Definition
dro2.cpp:182
Cdro2Player::iLength
int iLength
Definition
dro2.h:40
Cdro2Player::piConvTable
uint8_t * piConvTable
Definition
dro2.h:37
Cdro2Player::Cdro2Player
Cdro2Player(Copl *newopl)
Definition
dro2.cpp:37
Cdro2Player::iCmdDelayS
uint8_t iCmdDelayS
Definition
dro2.h:35
Copl
Definition
opl.h:26
filename
static char filename[]
Definition
features.c:5
uint8_t
unsigned char uint8_t
Definition
mid.cpp:98
player.h
Generated on
for LMMS by
1.16.1