LMMS
Loading...
Searching...
No Matches
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
32class Cdro2Player: public CPlayer
33{
34 protected:
38
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);
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};
Definition fprovide.h:29
CPlayer(Copl *newopl)
Definition player.cpp:34
std::string gettype()
Definition dro2.h:60
char desc[1023]
Definition dro2.h:47
bool update()
Definition dro2.cpp:135
uint8_t * data
Definition dro2.h:39
~Cdro2Player()
Definition dro2.cpp:44
int iDelay
Definition dro2.h:42
bool load(const std::string &filename, const CFileProvider &fp)
Definition dro2.cpp:50
std::string getauthor()
Definition dro2.h:66
uint8_t iCmdDelayL
Definition dro2.h:35
std::string getdesc()
Definition dro2.h:67
int iConvTableLen
Definition dro2.h:36
std::string gettitle()
Definition dro2.h:65
int iPos
Definition dro2.h:41
char author[40]
Definition dro2.h:46
static CPlayer * factory(Copl *newopl)
Definition dro2.cpp:32
void rewind(int subsong)
Definition dro2.cpp:175
char title[40]
Definition dro2.h:45
float getrefresh()
Definition dro2.cpp:182
int iLength
Definition dro2.h:40
uint8_t * piConvTable
Definition dro2.h:37
Cdro2Player(Copl *newopl)
Definition dro2.cpp:37
uint8_t iCmdDelayS
Definition dro2.h:35
Definition opl.h:26
static char filename[]
Definition features.c:5
unsigned char uint8_t
Definition mid.cpp:98