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

#include <psi.h>

Inheritance diagram for CxadpsiPlayer:
CxadPlayer CPlayer

Classes

struct  psi_header

Public Member Functions

 CxadpsiPlayer (Copl *newopl)
Public Member Functions inherited from CxadPlayer
 CxadPlayer (Copl *newopl)
 ~CxadPlayer ()
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 getinstrument (unsigned int i)
unsigned int getinstruments ()
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 std::string getdesc ()
virtual unsigned int getpatterns ()
virtual unsigned int getpattern ()
virtual unsigned int getorders ()
virtual unsigned int getorder ()
virtual unsigned int getrow ()
virtual unsigned int getsubsongs ()
virtual unsigned int getsubsong ()

Static Public Member Functions

static CPlayerfactory (Copl *newopl)
Static Public Member Functions inherited from CxadPlayer
static CPlayerfactory (Copl *newopl)

Protected Member Functions

bool xadplayer_load ()
void xadplayer_rewind (int subsong)
void xadplayer_update ()
float xadplayer_getrefresh ()
std::string xadplayer_gettype ()
unsigned int xadplayer_getinstruments ()
Protected Member Functions inherited from CxadPlayer
virtual std::string xadplayer_gettitle ()
virtual std::string xadplayer_getauthor ()
virtual std::string xadplayer_getinstrument (unsigned int i)
virtual unsigned int xadplayer_getspeed ()
void opl_write (int reg, int val)

Protected Attributes

struct CxadpsiPlayer::psi_header header
struct { 
   unsigned char *   instr_table 
   unsigned char *   seq_table 
   unsigned char   note_delay [9] 
   unsigned char   note_curdelay [9] 
   unsigned char   looping [9] 
psi
Protected Attributes inherited from CxadPlayer
struct CxadPlayer::xad_header xad
unsigned char * tune
unsigned long tune_size
struct { 
   int   playing 
   int   looping 
   unsigned char   speed 
   unsigned char   speed_counter 
plr
unsigned char adlib [256]
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Static Private Attributes

static const unsigned char psi_adlib_registers [99]
static const unsigned short psi_notes [16]

Additional Inherited Members

Protected Types inherited from CxadPlayer
enum  {
  HYP =1 , PSI , FLASH , BMF ,
  RAT , HYBRID
}
Static Protected Attributes inherited from CPlayer
static const unsigned short note_table [12]
static const unsigned char op_table [9]

Constructor & Destructor Documentation

◆ CxadpsiPlayer()

CxadpsiPlayer::CxadpsiPlayer ( Copl * newopl)
inline

Member Function Documentation

◆ factory()

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

◆ xadplayer_getinstruments()

unsigned int CxadpsiPlayer::xadplayer_getinstruments ( )
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_getrefresh()

float CxadpsiPlayer::xadplayer_getrefresh ( )
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_gettype()

std::string CxadpsiPlayer::xadplayer_gettype ( )
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_load()

bool CxadpsiPlayer::xadplayer_load ( )
inlineprotectedvirtual

Implements CxadPlayer.

◆ xadplayer_rewind()

void CxadpsiPlayer::xadplayer_rewind ( int subsong)
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_update()

void CxadpsiPlayer::xadplayer_update ( )
protectedvirtual

Implements CxadPlayer.

Member Data Documentation

◆ header

struct CxadpsiPlayer::psi_header CxadpsiPlayer::header
protected

◆ instr_table

unsigned char* CxadpsiPlayer::instr_table

◆ looping

unsigned char CxadpsiPlayer::looping[9]

◆ note_curdelay

unsigned char CxadpsiPlayer::note_curdelay[9]

◆ note_delay

unsigned char CxadpsiPlayer::note_delay[9]

◆ [struct]

struct { ... } CxadpsiPlayer::psi

◆ psi_adlib_registers

const unsigned char CxadpsiPlayer::psi_adlib_registers
staticprivate
Initial value:
=
{
0x20, 0x23, 0x40, 0x43, 0x60, 0x63, 0x80, 0x83, 0xE0, 0xE3, 0xC0,
0x21, 0x24, 0x41, 0x44, 0x61, 0x64, 0x81, 0x84, 0xE1, 0xE4, 0xC1,
0x22, 0x25, 0x42, 0x45, 0x62, 0x65, 0x82, 0x85, 0xE2, 0xE5, 0xC2,
0x28, 0x2B, 0x48, 0x4B, 0x68, 0x6B, 0x88, 0x8B, 0xE8, 0xEB, 0xC3,
0x29, 0x2C, 0x49, 0x4C, 0x69, 0x6C, 0x89, 0x8C, 0xE9, 0xEC, 0xC4,
0x2A, 0x2D, 0x4A, 0x4D, 0x6A, 0x6D, 0x8A, 0x8D, 0xEA, 0xED, 0xC5,
0x30, 0x33, 0x50, 0x53, 0x70, 0x73, 0x90, 0x93, 0xF0, 0xF3, 0xC6,
0x31, 0x34, 0x51, 0x54, 0x71, 0x74, 0x91, 0x94, 0xF1, 0xF4, 0xC7,
0x32, 0x35, 0x52, 0x55, 0x72, 0x75, 0x92, 0x95, 0xF2, 0xF5, 0xC8
}

◆ psi_notes

const unsigned short CxadpsiPlayer::psi_notes
staticprivate
Initial value:
=
{
0x216B, 0x2181, 0x2198, 0x21B0, 0x21CA, 0x21E5, 0x2202, 0x2220,
0x2241, 0x2263, 0x2287, 0x2364,
0x0000, 0x0000, 0x0000, 0x0000
}

◆ seq_table

unsigned char* CxadpsiPlayer::seq_table

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