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

#include <msc.h>

Inheritance diagram for CmscPlayer:
CPlayer

Classes

struct  msc_header
struct  msc_block

Public Member Functions

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

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Protected Types

typedef unsigned char u8
typedef unsigned short u16

Protected Attributes

char * desc
unsigned short version
unsigned short nr_blocks
unsigned short block_len
unsigned short timer_div
msc_blockmsc_data
unsigned long block_num
unsigned long block_pos
unsigned long raw_pos
u8raw_data
u8 dec_prefix
int dec_dist
unsigned int dec_len
unsigned char delay
unsigned long play_pos
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Private Member Functions

bool load_header (binistream *bf, msc_header *hdr)
bool decode_octet (u8 *output)

Static Private Attributes

static const u8 msc_signature [MSC_SIGN_LEN]

Additional Inherited Members

Static Protected Attributes inherited from CPlayer
static const unsigned short note_table [12]
static const unsigned char op_table [9]

Member Typedef Documentation

◆ u16

typedef unsigned short CmscPlayer::u16
protected

◆ u8

typedef unsigned char CmscPlayer::u8
protected

Constructor & Destructor Documentation

◆ CmscPlayer()

CmscPlayer::CmscPlayer ( Copl * newopl)

◆ ~CmscPlayer()

CmscPlayer::~CmscPlayer ( )

Member Function Documentation

◆ decode_octet()

bool CmscPlayer::decode_octet ( u8 * output)
private

◆ factory()

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

◆ getrefresh()

float CmscPlayer::getrefresh ( )
virtual

Implements CPlayer.

◆ gettype()

std::string CmscPlayer::gettype ( )
virtual

Implements CPlayer.

◆ load()

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

Implements CPlayer.

◆ load_header()

bool CmscPlayer::load_header ( binistream * bf,
msc_header * hdr )
private

◆ rewind()

void CmscPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ update()

bool CmscPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ block_len

unsigned short CmscPlayer::block_len
protected

◆ block_num

unsigned long CmscPlayer::block_num
protected

◆ block_pos

unsigned long CmscPlayer::block_pos
protected

◆ dec_dist

int CmscPlayer::dec_dist
protected

◆ dec_len

unsigned int CmscPlayer::dec_len
protected

◆ dec_prefix

u8 CmscPlayer::dec_prefix
protected

◆ delay

unsigned char CmscPlayer::delay
protected

◆ desc

char* CmscPlayer::desc
protected

◆ msc_data

msc_block* CmscPlayer::msc_data
protected

◆ msc_signature

const unsigned char CmscPlayer::msc_signature
staticprivate
Initial value:
= {
'C', 'e', 'r', 'e', 's', ' ', '\x13', ' ',
'M', 'S', 'C', 'p', 'l', 'a', 'y', ' ' }

◆ nr_blocks

unsigned short CmscPlayer::nr_blocks
protected

◆ play_pos

unsigned long CmscPlayer::play_pos
protected

◆ raw_data

u8* CmscPlayer::raw_data
protected

◆ raw_pos

unsigned long CmscPlayer::raw_pos
protected

◆ timer_div

unsigned short CmscPlayer::timer_div
protected

◆ version

unsigned short CmscPlayer::version
protected

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