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

#include <mid.h>

Inheritance diagram for CmidPlayer:
CPlayer

Classes

struct  midi_channel
struct  midi_track

Public Member Functions

 CmidPlayer (Copl *newopl)
 ~CmidPlayer ()
bool load (const std::string &filename, const CFileProvider &fp)
bool update ()
void rewind (int subsong)
float getrefresh ()
std::string gettype ()
std::string gettitle ()
std::string getauthor ()
std::string getdesc ()
unsigned int getinstruments ()
unsigned int getsubsongs ()
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 getpatterns ()
virtual unsigned int getpattern ()
virtual unsigned int getorders ()
virtual unsigned int getorder ()
virtual unsigned int getrow ()
virtual unsigned int getspeed ()
virtual unsigned int getsubsong ()
virtual std::string getinstrument (unsigned int n)

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Protected Attributes

char * author
char * title
char * remarks
char emptystr
long flen
unsigned long pos
unsigned long sierra_pos
int subsongs
unsigned char * data
unsigned char adlib_data [256]
int adlib_style
int adlib_mode
unsigned char myinsbank [128][16]
unsigned char smyinsbank [128][16]
midi_channel ch [16]
int chp [18][3]
long deltas
long msqtr
midi_track track [16]
unsigned int curtrack
float fwait
unsigned long iwait
int doing
int type
int tins
int stins
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Static Protected Attributes

static const unsigned char adlib_opadd [] = {0x00 ,0x01 ,0x02 ,0x08 ,0x09 ,0x0A ,0x10 ,0x11 ,0x12}
static const int ops []
static const int map_chan [] = { 0x14, 0x12, 0x15, 0x11 }
static const int fnums [] = { 0x16b,0x181,0x198,0x1b0,0x1ca,0x1e5,0x202,0x220,0x241,0x263,0x287,0x2ae }
static const int percussion_map [] = { 6, 7, 8, 8, 7 }
Static Protected Attributes inherited from CPlayer
static const unsigned short note_table [12]
static const unsigned char op_table [9]

Private Member Functions

bool load_sierra_ins (const std::string &fname, const CFileProvider &fp)
void midiprintf (const char *format,...)
unsigned char datalook (long pos)
unsigned long getnexti (unsigned long num)
unsigned long getnext (unsigned long num)
unsigned long getval ()
void sierra_next_section ()
void midi_write_adlib (unsigned int r, unsigned char v)
void midi_fm_instrument (int voice, unsigned char *inst)
void midi_fm_percussion (int ch, unsigned char *inst)
void midi_fm_volume (int voice, int volume)
void midi_fm_playnote (int voice, int note, int volume)
void midi_fm_endnote (int voice)
void midi_fm_reset ()

Constructor & Destructor Documentation

◆ CmidPlayer()

CmidPlayer::CmidPlayer ( Copl * newopl)

◆ ~CmidPlayer()

CmidPlayer::~CmidPlayer ( )
inline

Member Function Documentation

◆ datalook()

unsigned char CmidPlayer::datalook ( long pos)
private

◆ factory()

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

◆ getauthor()

std::string CmidPlayer::getauthor ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getdesc()

std::string CmidPlayer::getdesc ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getinstruments()

unsigned int CmidPlayer::getinstruments ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getnext()

unsigned long CmidPlayer::getnext ( unsigned long num)
private

◆ getnexti()

unsigned long CmidPlayer::getnexti ( unsigned long num)
private

◆ getrefresh()

float CmidPlayer::getrefresh ( )
virtual

Implements CPlayer.

◆ getsubsongs()

unsigned int CmidPlayer::getsubsongs ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettitle()

std::string CmidPlayer::gettitle ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettype()

std::string CmidPlayer::gettype ( )
virtual

Implements CPlayer.

◆ getval()

unsigned long CmidPlayer::getval ( )
private

◆ load()

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

Implements CPlayer.

◆ load_sierra_ins()

bool CmidPlayer::load_sierra_ins ( const std::string & fname,
const CFileProvider & fp )
private

◆ midi_fm_endnote()

void CmidPlayer::midi_fm_endnote ( int voice)
private

◆ midi_fm_instrument()

void CmidPlayer::midi_fm_instrument ( int voice,
unsigned char * inst )
private

◆ midi_fm_percussion()

void CmidPlayer::midi_fm_percussion ( int ch,
unsigned char * inst )
private

◆ midi_fm_playnote()

void CmidPlayer::midi_fm_playnote ( int voice,
int note,
int volume )
private

◆ midi_fm_reset()

void CmidPlayer::midi_fm_reset ( )
private

◆ midi_fm_volume()

void CmidPlayer::midi_fm_volume ( int voice,
int volume )
private

◆ midi_write_adlib()

void CmidPlayer::midi_write_adlib ( unsigned int r,
unsigned char v )
private

◆ midiprintf()

void CmidPlayer::midiprintf ( const char * format,
... )
private

◆ rewind()

void CmidPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ sierra_next_section()

void CmidPlayer::sierra_next_section ( )
private

◆ update()

bool CmidPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ adlib_data

unsigned char CmidPlayer::adlib_data[256]
protected

◆ adlib_mode

int CmidPlayer::adlib_mode
protected

◆ adlib_opadd

const unsigned char CmidPlayer::adlib_opadd = {0x00 ,0x01 ,0x02 ,0x08 ,0x09 ,0x0A ,0x10 ,0x11 ,0x12}
staticprotected

◆ adlib_style

int CmidPlayer::adlib_style
protected

◆ author

char* CmidPlayer::author
protected

◆ ch

midi_channel CmidPlayer::ch[16]
protected

◆ chp

int CmidPlayer::chp[18][3]
protected

◆ curtrack

unsigned int CmidPlayer::curtrack
protected

◆ data

unsigned char* CmidPlayer::data
protected

◆ deltas

long CmidPlayer::deltas
protected

◆ doing

int CmidPlayer::doing
protected

◆ emptystr

char CmidPlayer::emptystr
protected

◆ flen

long CmidPlayer::flen
protected

◆ fnums

const int CmidPlayer::fnums = { 0x16b,0x181,0x198,0x1b0,0x1ca,0x1e5,0x202,0x220,0x241,0x263,0x287,0x2ae }
staticprotected

◆ fwait

float CmidPlayer::fwait
protected

◆ iwait

unsigned long CmidPlayer::iwait
protected

◆ map_chan

const int CmidPlayer::map_chan = { 0x14, 0x12, 0x15, 0x11 }
staticprotected

◆ msqtr

long CmidPlayer::msqtr
protected

◆ myinsbank

unsigned char CmidPlayer::myinsbank[128][16]
protected

◆ ops

const int CmidPlayer::ops[]
staticprotected

◆ percussion_map

const int CmidPlayer::percussion_map = { 6, 7, 8, 8, 7 }
staticprotected

◆ pos

unsigned long CmidPlayer::pos
protected

◆ remarks

char * CmidPlayer::remarks
protected

◆ sierra_pos

unsigned long CmidPlayer::sierra_pos
protected

◆ smyinsbank

unsigned char CmidPlayer::smyinsbank[128][16]
protected

◆ stins

int CmidPlayer::stins
protected

◆ subsongs

int CmidPlayer::subsongs
protected

◆ tins

int CmidPlayer::tins
protected

◆ title

char * CmidPlayer::title
protected

◆ track

midi_track CmidPlayer::track[16]
protected

◆ type

int CmidPlayer::type
protected

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