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

#include <lds.h>

Inheritance diagram for CldsPlayer:
CPlayer

Classes

struct  SoundBank
struct  Channel
struct  Position

Public Member Functions

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

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Private Member Functions

void playsound (int inst_number, int channel_number, int tunehigh)
void setregs (unsigned char reg, unsigned char val)
void setregs_adv (unsigned char reg, unsigned char mask, unsigned char val)

Private Attributes

SoundBanksoundbank
Channel channel [9]
Positionpositions
unsigned char fmchip [0xff]
unsigned char jumping
unsigned char fadeonoff
unsigned char allvolume
unsigned char hardfade
unsigned char tempo_now
unsigned char pattplay
unsigned char tempo
unsigned char regbd
unsigned char chandelay [9]
unsigned char mode
unsigned char pattlen
unsigned short posplay
unsigned short jumppos
unsigned short * patterns
unsigned short speed
bool playing
bool songlooped
unsigned int numpatch
unsigned int numposi
unsigned int patterns_size
unsigned int mainvolume

Static Private Attributes

static const unsigned short frequency []
static const unsigned char vibtab []
static const unsigned char tremtab []
static const unsigned short maxsound = 0x3f
static const unsigned short maxpos = 0xff

Additional Inherited Members

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

◆ CldsPlayer()

CldsPlayer::CldsPlayer ( Copl * newopl)

◆ ~CldsPlayer()

CldsPlayer::~CldsPlayer ( )
virtual

Member Function Documentation

◆ factory()

CPlayer * CldsPlayer::factory ( Copl * newopl)
inlinestatic

◆ getinstruments()

unsigned int CldsPlayer::getinstruments ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getorder()

unsigned int CldsPlayer::getorder ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getorders()

unsigned int CldsPlayer::getorders ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getrefresh()

float CldsPlayer::getrefresh ( )
inlinevirtual

Implements CPlayer.

◆ getrow()

unsigned int CldsPlayer::getrow ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getspeed()

unsigned int CldsPlayer::getspeed ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettype()

std::string CldsPlayer::gettype ( )
inlinevirtual

Implements CPlayer.

◆ load()

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

Implements CPlayer.

◆ playsound()

void CldsPlayer::playsound ( int inst_number,
int channel_number,
int tunehigh )
private

◆ rewind()

void CldsPlayer::rewind ( int subsong = -1)
virtual

Implements CPlayer.

◆ setregs()

void CldsPlayer::setregs ( unsigned char reg,
unsigned char val )
inlineprivate

◆ setregs_adv()

void CldsPlayer::setregs_adv ( unsigned char reg,
unsigned char mask,
unsigned char val )
inlineprivate

◆ update()

bool CldsPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ allvolume

unsigned char CldsPlayer::allvolume
private

◆ chandelay

unsigned char CldsPlayer::chandelay[9]
private

◆ channel

Channel CldsPlayer::channel[9]
private

◆ fadeonoff

unsigned char CldsPlayer::fadeonoff
private

◆ fmchip

unsigned char CldsPlayer::fmchip[0xff]
private

◆ frequency

const unsigned short CldsPlayer::frequency
staticprivate
Initial value:
= {
343, 344, 345, 347, 348, 349, 350, 352, 353, 354, 356, 357, 358,
359, 361, 362, 363, 365, 366, 367, 369, 370, 371, 373, 374, 375,
377, 378, 379, 381, 382, 384, 385, 386, 388, 389, 391, 392, 393,
395, 396, 398, 399, 401, 402, 403, 405, 406, 408, 409, 411, 412,
414, 415, 417, 418, 420, 421, 423, 424, 426, 427, 429, 430, 432,
434, 435, 437, 438, 440, 442, 443, 445, 446, 448, 450, 451, 453,
454, 456, 458, 459, 461, 463, 464, 466, 468, 469, 471, 473, 475,
476, 478, 480, 481, 483, 485, 487, 488, 490, 492, 494, 496, 497,
499, 501, 503, 505, 506, 508, 510, 512, 514, 516, 518, 519, 521,
523, 525, 527, 529, 531, 533, 535, 537, 538, 540, 542, 544, 546,
548, 550, 552, 554, 556, 558, 560, 562, 564, 566, 568, 571, 573,
575, 577, 579, 581, 583, 585, 587, 589, 591, 594, 596, 598, 600,
602, 604, 607, 609, 611, 613, 615, 618, 620, 622, 624, 627, 629,
631, 633, 636, 638, 640, 643, 645, 647, 650, 652, 654, 657, 659,
662, 664, 666, 669, 671, 674, 676, 678, 681, 683
}

◆ hardfade

unsigned char CldsPlayer::hardfade
private

◆ jumping

unsigned char CldsPlayer::jumping
private

◆ jumppos

unsigned short CldsPlayer::jumppos
private

◆ mainvolume

unsigned int CldsPlayer::mainvolume
private

◆ maxpos

const unsigned short CldsPlayer::maxpos = 0xff
staticprivate

◆ maxsound

const unsigned short CldsPlayer::maxsound = 0x3f
staticprivate

◆ mode

unsigned char CldsPlayer::mode
private

◆ numpatch

unsigned int CldsPlayer::numpatch
private

◆ numposi

unsigned int CldsPlayer::numposi
private

◆ patterns

unsigned short * CldsPlayer::patterns
private

◆ patterns_size

unsigned int CldsPlayer::patterns_size
private

◆ pattlen

unsigned char CldsPlayer::pattlen
private

◆ pattplay

unsigned char CldsPlayer::pattplay
private

◆ playing

bool CldsPlayer::playing
private

◆ positions

Position* CldsPlayer::positions
private

◆ posplay

unsigned short CldsPlayer::posplay
private

◆ regbd

unsigned char CldsPlayer::regbd
private

◆ songlooped

bool CldsPlayer::songlooped
private

◆ soundbank

SoundBank* CldsPlayer::soundbank
private

◆ speed

unsigned short CldsPlayer::speed
private

◆ tempo

unsigned char CldsPlayer::tempo
private

◆ tempo_now

unsigned char CldsPlayer::tempo_now
private

◆ tremtab

const unsigned char CldsPlayer::tremtab
staticprivate
Initial value:
= {
0, 0, 1, 1, 2, 4, 5, 7, 10, 12, 15, 18, 21, 25, 29, 33, 37, 42, 47,
52, 57, 62, 67, 73, 79, 85, 90, 97, 103, 109, 115, 121, 128, 134,
140, 146, 152, 158, 165, 170, 176, 182, 188, 193, 198, 203, 208,
213, 218, 222, 226, 230, 234, 237, 240, 243, 245, 248, 250, 251,
253, 254, 254, 255, 255, 255, 254, 254, 253, 251, 250, 248, 245,
243, 240, 237, 234, 230, 226, 222, 218, 213, 208, 203, 198, 193,
188, 182, 176, 170, 165, 158, 152, 146, 140, 134, 127, 121, 115,
109, 103, 97, 90, 85, 79, 73, 67, 62, 57, 52, 47, 42, 37, 33, 29,
25, 21, 18, 15, 12, 10, 7, 5, 4, 2, 1, 1, 0
}

◆ vibtab

const unsigned char CldsPlayer::vibtab
staticprivate
Initial value:
= {
0, 13, 25, 37, 50, 62, 74, 86, 98, 109, 120, 131, 142, 152, 162,
171, 180, 189, 197, 205, 212, 219, 225, 231, 236, 240, 244, 247,
250, 252, 254, 255, 255, 255, 254, 252, 250, 247, 244, 240, 236,
231, 225, 219, 212, 205, 197, 189, 180, 171, 162, 152, 142, 131,
120, 109, 98, 86, 74, 62, 50, 37, 25, 13
}

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