X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fadplug%2Fadplug-2.2.1%2Fsrc%2Frad.h;fp=16%2Fadplug%2Fadplug-2.2.1%2Fsrc%2Frad.h;h=07814b8abd4e2e4c6804f54828def18e14d0888d;hb=36a9d9615f360f0c3e4ddb7b421a46877286931f;hp=0000000000000000000000000000000000000000;hpb=f911a5a8eeaf8fdc9732eaf438fcd02a1e6c1528;p=16.git diff --git a/16/adplug/adplug-2.2.1/src/rad.h b/16/adplug/adplug-2.2.1/src/rad.h new file mode 100644 index 00000000..07814b8a --- /dev/null +++ b/16/adplug/adplug-2.2.1/src/rad.h @@ -0,0 +1,44 @@ +/* + * Adplug - Replayer for many OPL2/OPL3 audio file formats. + * Copyright (C) 1999 - 2003 Simon Peter, , et al. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * rad.h - RAD Loader by Simon Peter + */ + +#include "protrack.h" + +class CradLoader: public CmodPlayer +{ +public: + static CPlayer *factory(Copl *newopl); + + CradLoader(Copl *newopl) + : CmodPlayer(newopl) + { *desc = '\0'; }; + + bool load(const std::string &filename, const CFileProvider &fp); + float getrefresh(); + + std::string gettype() + { return std::string("Reality ADlib Tracker"); }; + std::string getdesc() + { return std::string(desc); }; + +private: + unsigned char version,radflags; + char desc[80*22]; +};