LMMS
Loading...
Searching...
No Matches
CdtmLoader Class Reference

#include <dtm.h>

Inheritance diagram for CdtmLoader:
CmodPlayer CPlayer

Classes

struct  dtm_header
struct  dtm_instrument
struct  dtm_event

Public Member Functions

 CdtmLoader (Copl *newopl)
bool load (const std::string &filename, const CFileProvider &fp)
void rewind (int subsong)
float getrefresh ()
std::string gettype ()
std::string gettitle ()
std::string getauthor ()
std::string getdesc ()
std::string getinstrument (unsigned int n)
unsigned int getinstruments ()
Public Member Functions inherited from CmodPlayer
 CmodPlayer (Copl *newopl)
virtual ~CmodPlayer ()
bool update ()
void rewind (int subsong)
float getrefresh ()
unsigned int getpatterns ()
unsigned int getpattern ()
unsigned int getorders ()
unsigned int getorder ()
unsigned int getrow ()
unsigned int getspeed ()
Public Member Functions inherited from CPlayer
 CPlayer (Copl *newopl)
virtual ~CPlayer ()
void seek (unsigned long ms)
unsigned long songlength (int subsong=-1)
virtual unsigned int getsubsongs ()
virtual unsigned int getsubsong ()

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Private Member Functions

long unpack_pattern (unsigned char *ibuf, long ilen, unsigned char *obuf, long olen)

Private Attributes

struct CdtmLoader::dtm_header header
char desc [80 *16]
struct CdtmLoader::dtm_instrument instruments [128]

Additional Inherited Members

Protected Types inherited from CmodPlayer
enum  Flags {
  Standard = 0 , Decimal = 1 << 0 , Faust = 1 << 1 , NoKeyOn = 1 << 2 ,
  Opl3 = 1 << 3 , Tremolo = 1 << 4 , Vibrato = 1 << 5 , Percussion = 1 << 6
}
Protected Member Functions inherited from CmodPlayer
void init_trackord ()
bool init_specialarp ()
void init_notetable (const unsigned short *newnotetable)
bool realloc_order (unsigned long len)
bool realloc_patterns (unsigned long pats, unsigned long rows, unsigned long chans)
bool realloc_instruments (unsigned long len)
void dealloc ()
Protected Attributes inherited from CmodPlayer
struct CmodPlayer::Instrumentinst
struct CmodPlayer::Tracks ** tracks
unsigned char * order
unsigned char * arplist
unsigned char * arpcmd
unsigned char initspeed
unsigned short tempo
unsigned short ** trackord
unsigned short bpm
unsigned short nop
unsigned long length
unsigned long restartpos
unsigned long activechan
int flags
int curchip
struct CmodPlayer::Channelchannel
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb
Static Protected Attributes inherited from CPlayer
static const unsigned short note_table [12]
static const unsigned char op_table [9]

Constructor & Destructor Documentation

◆ CdtmLoader()

CdtmLoader::CdtmLoader ( Copl * newopl)
inline

Member Function Documentation

◆ factory()

CPlayer * CdtmLoader::factory ( Copl * newopl)
static

◆ getauthor()

std::string CdtmLoader::getauthor ( )
virtual

Reimplemented from CPlayer.

◆ getdesc()

std::string CdtmLoader::getdesc ( )
virtual

Reimplemented from CPlayer.

◆ getinstrument()

std::string CdtmLoader::getinstrument ( unsigned int n)
virtual

Reimplemented from CPlayer.

◆ getinstruments()

unsigned int CdtmLoader::getinstruments ( )
virtual

Reimplemented from CPlayer.

◆ getrefresh()

float CdtmLoader::getrefresh ( )
virtual

Implements CPlayer.

◆ gettitle()

std::string CdtmLoader::gettitle ( )
virtual

Reimplemented from CPlayer.

◆ gettype()

std::string CdtmLoader::gettype ( )
virtual

Implements CPlayer.

◆ load()

bool CdtmLoader::load ( const std::string & filename,
const CFileProvider & fp )
virtual

Implements CPlayer.

◆ rewind()

void CdtmLoader::rewind ( int subsong)
virtual

Implements CPlayer.

◆ unpack_pattern()

long CdtmLoader::unpack_pattern ( unsigned char * ibuf,
long ilen,
unsigned char * obuf,
long olen )
private

Member Data Documentation

◆ desc

char CdtmLoader::desc[80 *16]
private

◆ header

struct CdtmLoader::dtm_header CdtmLoader::header
private

◆ instruments

struct CdtmLoader::dtm_instrument CdtmLoader::instruments[128]
private

The documentation for this class was generated from the following files: