LMMS
Loading...
Searching...
No Matches
adtrack.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 * adtrack.h - Adlib Tracker 1.0 Loader by Simon Peter <dn.tlp@gmx.net>
20 */
21
22#include "protrack.h"
23
25{
26public:
27 static CPlayer *factory(Copl *newopl);
28
30 : CmodPlayer(newopl)
31 { };
32
33 bool load(const std::string &filename, const CFileProvider &fp);
34 float getrefresh();
35
36 std::string gettype()
37 { return std::string("Adlib Tracker 1.0"); };
38 unsigned int getinstruments()
39 { return 9; };
40
41private:
42 enum Operators {Carrier = 1, Modulator = 0};
43
44 typedef struct {
45 struct {
49 } op[2];
50 } AdTrackInst;
51
52 void convert_instrument(unsigned int n, AdTrackInst *i);
53};
Definition fprovide.h:29
CPlayer(Copl *newopl)
Definition player.cpp:34
unsigned int getinstruments()
Definition adtrack.h:38
Operators
Definition adtrack.h:42
@ Modulator
Definition adtrack.h:42
@ Carrier
Definition adtrack.h:42
std::string gettype()
Definition adtrack.h:36
void convert_instrument(unsigned int n, AdTrackInst *i)
Definition adtrack.cpp:134
bool load(const std::string &filename, const CFileProvider &fp)
Definition adtrack.cpp:45
CadtrackLoader(Copl *newopl)
Definition adtrack.h:29
static CPlayer * factory(Copl *newopl)
Definition adtrack.cpp:40
float getrefresh()
Definition adtrack.cpp:127
CmodPlayer(Copl *newopl)
Definition protrack.cpp:45
Definition opl.h:26
register unsigned i
Definition inflate.c:1575
static char filename[]
Definition features.c:5
unsigned short waveform
Definition adtrack.h:48
unsigned short appampmod
Definition adtrack.h:46
unsigned short softness
Definition adtrack.h:47
unsigned short attack
Definition adtrack.h:47
unsigned short octave
Definition adtrack.h:46
unsigned short sustain
Definition adtrack.h:47
unsigned short appvib
Definition adtrack.h:46
unsigned short keybscale
Definition adtrack.h:46
unsigned short maintsuslvl
Definition adtrack.h:46
unsigned short freqrisevollvldn
Definition adtrack.h:47
unsigned short decay
Definition adtrack.h:47
unsigned short release
Definition adtrack.h:47
unsigned short feedback
Definition adtrack.h:48
int n
Definition crypt.c:458