LMMS
Loading...
Searching...
No Matches
flash.h
Go to the documentation of this file.
1/*
2 * Adplug - Replayer for many OPL2/OPL3 audio file formats.
3 * Copyright (C) 1999 - 2003 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 * [xad] FLASH player, by Riven the Mage <riven@ok.ru>
20 */
21
22#include "xad.h"
23
25{
26public:
27 static CPlayer *factory(Copl *newopl);
28
30 { };
31
32protected:
33 struct
34 {
35 unsigned char order_pos;
36 unsigned char pattern_pos;
38 //
40 {
41 if(xad.fmt == FLASH)
42 return true;
43 else
44 return false;
45 }
46 void xadplayer_rewind(int subsong);
49 std::string xadplayer_gettype();
50 unsigned int xadplayer_getinstruments();
51
52private:
53 static const unsigned char flash_adlib_registers[99];
54 static const unsigned short flash_notes_encoded[268];
55 static const unsigned short flash_notes[12];
56 static const unsigned char flash_default_instrument[8];
57};
CPlayer(Copl *newopl)
Definition player.cpp:34
Definition opl.h:26
@ FLASH
Definition xad.h:84
CxadPlayer(Copl *newopl)
Definition xad.cpp:36
struct CxadPlayer::xad_header xad
struct CxadflashPlayer::@357151273136232315314132110053127210061010004063 flash
static const unsigned short flash_notes_encoded[268]
Definition flash.h:47
bool xadplayer_load()
Definition flash.h:39
static const unsigned char flash_adlib_registers[99]
Definition flash.h:34
float xadplayer_getrefresh()
Definition flash.cpp:217
unsigned char pattern_pos
Definition flash.h:36
unsigned char order_pos
Definition flash.h:35
void xadplayer_rewind(int subsong)
Definition flash.cpp:89
static const unsigned char flash_default_instrument[8]
Definition flash.h:79
void xadplayer_update()
Definition flash.cpp:114
static CPlayer * factory(Copl *newopl)
Definition flash.cpp:84
unsigned int xadplayer_getinstruments()
Definition flash.cpp:227
CxadflashPlayer(Copl *newopl)
Definition flash.h:29
static const unsigned short flash_notes[12]
Definition flash.h:74
std::string xadplayer_gettype()
Definition flash.cpp:222