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

#include <sop.h>

Inheritance diagram for CsopPlayer:
CPlayer

Classes

struct  sop_inst
struct  sop_trk

Public Member Functions

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

Protected Attributes

bool songend
float timer
uint8_t cur_tempo
uint8_t volume [SOP_MAX_TRACK]
uint8_t lastvol [SOP_MAX_TRACK]
uint8_t master_vol
char fname [SOP_FILENAME]
char title [SOP_TITLE]
uint8_t percussive
uint8_t tickBeat
uint8_t basicTempo
char comment [SOP_COMMENT]
uint8_t nTracks
uint8_t nInsts
uint8_tchanMode
sop_instinst
sop_trktrack
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Private Member Functions

void SetTempo (uint8_t tempo)
void executeCommand (uint8_t t)

Private Attributes

Cad262Driverdrv

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ CsopPlayer()

CsopPlayer::CsopPlayer ( Copl * newopl)
inline

◆ ~CsopPlayer()

CsopPlayer::~CsopPlayer ( )
inline

Member Function Documentation

◆ executeCommand()

void CsopPlayer::executeCommand ( uint8_t t)
private

◆ factory()

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

◆ getdesc()

std::string CsopPlayer::getdesc ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getinstrument()

std::string CsopPlayer::getinstrument ( unsigned int n)
inlinevirtual

Reimplemented from CPlayer.

◆ getinstruments()

unsigned int CsopPlayer::getinstruments ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getrefresh()

float CsopPlayer::getrefresh ( )
inlinevirtual

Implements CPlayer.

◆ getspeed()

unsigned int CsopPlayer::getspeed ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettitle()

std::string CsopPlayer::gettitle ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettype()

std::string CsopPlayer::gettype ( )
inlinevirtual

Implements CPlayer.

◆ load()

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

Implements CPlayer.

◆ rewind()

void CsopPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ SetTempo()

void CsopPlayer::SetTempo ( uint8_t tempo)
private

◆ update()

bool CsopPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ basicTempo

uint8_t CsopPlayer::basicTempo
protected

◆ chanMode

uint8_t* CsopPlayer::chanMode
protected

◆ comment

char CsopPlayer::comment[SOP_COMMENT]
protected

◆ cur_tempo

uint8_t CsopPlayer::cur_tempo
protected

◆ drv

Cad262Driver* CsopPlayer::drv
private

◆ fname

char CsopPlayer::fname[SOP_FILENAME]
protected

◆ inst

sop_inst* CsopPlayer::inst
protected

◆ lastvol

uint8_t CsopPlayer::lastvol[SOP_MAX_TRACK]
protected

◆ master_vol

uint8_t CsopPlayer::master_vol
protected

◆ nInsts

uint8_t CsopPlayer::nInsts
protected

◆ nTracks

uint8_t CsopPlayer::nTracks
protected

◆ percussive

uint8_t CsopPlayer::percussive
protected

◆ songend

bool CsopPlayer::songend
protected

◆ tickBeat

uint8_t CsopPlayer::tickBeat
protected

◆ timer

float CsopPlayer::timer
protected

◆ title

char CsopPlayer::title[SOP_TITLE]
protected

◆ track

sop_trk* CsopPlayer::track
protected

◆ volume

uint8_t CsopPlayer::volume[SOP_MAX_TRACK]
protected

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