LMMS
Loading...
Searching...
No Matches
xsm.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 * xsm.h - eXtra Simple Music Player, by Simon Peter <dn.tlp@gmx.net>
20 */
21
22#include "player.h"
23
24class CxsmPlayer: public CPlayer
25{
26public:
27 static CPlayer *factory(Copl *newopl) { return new CxsmPlayer(newopl); }
28
29 CxsmPlayer(Copl *newopl);
31
32 bool load(const std::string &filename, const CFileProvider &fp);
33 bool update();
34 void rewind(int subsong);
35 float getrefresh();
36
37 std::string gettype() { return std::string("eXtra Simple Music"); }
38
39private:
40 unsigned short songlen;
41 char *music;
42 unsigned int last, notenum;
43 bool songend;
44
45 void play_note(int c, int note, int octv);
46};
Definition fprovide.h:29
CPlayer(Copl *newopl)
Definition player.cpp:34
Definition opl.h:26
void rewind(int subsong)
Definition xsm.cpp:99
unsigned int last
Definition xsm.h:42
void play_note(int c, int note, int octv)
Definition xsm.cpp:110
static CPlayer * factory(Copl *newopl)
Definition xsm.h:27
CxsmPlayer(Copl *newopl)
Definition xsm.cpp:26
unsigned int notenum
Definition xsm.h:42
bool load(const std::string &filename, const CFileProvider &fp)
Definition xsm.cpp:36
bool update()
Definition xsm.cpp:74
bool songend
Definition xsm.h:43
std::string gettype()
Definition xsm.h:37
unsigned short songlen
Definition xsm.h:40
char * music
Definition xsm.h:41
float getrefresh()
Definition xsm.cpp:105
~CxsmPlayer()
Definition xsm.cpp:31
static char filename[]
Definition features.c:5
return c
Definition crypt.c:175