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

#include <mus.h>

Inheritance diagram for CmusPlayer:
CPlayer

Classes

struct  mus_inst

Public Member Functions

 CmusPlayer (Copl *newopl)
 ~CmusPlayer ()
bool load (const std::string &filename, const CFileProvider &fp)
bool update ()
void rewind (int subsong)
float getrefresh ()
std::string gettitle ()
std::string gettype ()
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 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 ()

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Protected Attributes

unsigned long pos
bool songend
float timer
uint32_t counter
uint32_t ticks
uint8_t status
uint8_t volume [MAX_VOICES]
uint8_t majorVersion
uint8_t minorVersion
char tuneName [TUNE_NAME_SIZE]
uint8_t tickBeat
uint32_t dataSize
uint8_t soundMode
uint8_t pitchBRange
uint16_t basicTempo
uint8_tdata
bool isIMS
uint16_t nrTimbre
mus_instinsts
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Private Member Functions

bool InstsLoaded ()
bool LoadTimbreBank (const std::string fname, const CFileProvider &fp)
bool FetchTimbreData (const std::string fname, const CFileProvider &fp)
void SetTempo (uint16_t tempo, uint8_t tickBeat)
uint32_t GetTicks ()
void executeCommand ()

Private Attributes

CadlibDriverdrv

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

◆ CmusPlayer()

CmusPlayer::CmusPlayer ( Copl * newopl)
inline

◆ ~CmusPlayer()

CmusPlayer::~CmusPlayer ( )
inline

Member Function Documentation

◆ executeCommand()

void CmusPlayer::executeCommand ( )
private

◆ factory()

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

◆ FetchTimbreData()

bool CmusPlayer::FetchTimbreData ( const std::string fname,
const CFileProvider & fp )
private

◆ getinstrument()

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

Reimplemented from CPlayer.

◆ getinstruments()

unsigned int CmusPlayer::getinstruments ( )
inlinevirtual

Reimplemented from CPlayer.

◆ getrefresh()

float CmusPlayer::getrefresh ( )
inlinevirtual

Implements CPlayer.

◆ GetTicks()

uint32_t CmusPlayer::GetTicks ( )
private

◆ gettitle()

std::string CmusPlayer::gettitle ( )
inlinevirtual

Reimplemented from CPlayer.

◆ gettype()

std::string CmusPlayer::gettype ( )
virtual

Implements CPlayer.

◆ InstsLoaded()

bool CmusPlayer::InstsLoaded ( )
private

◆ load()

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

Implements CPlayer.

◆ LoadTimbreBank()

bool CmusPlayer::LoadTimbreBank ( const std::string fname,
const CFileProvider & fp )
private

◆ rewind()

void CmusPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ SetTempo()

void CmusPlayer::SetTempo ( uint16_t tempo,
uint8_t tickBeat )
private

◆ update()

bool CmusPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ basicTempo

uint16_t CmusPlayer::basicTempo
protected

◆ counter

uint32_t CmusPlayer::counter
protected

◆ data

uint8_t* CmusPlayer::data
protected

◆ dataSize

uint32_t CmusPlayer::dataSize
protected

◆ drv

CadlibDriver* CmusPlayer::drv
private

◆ insts

mus_inst* CmusPlayer::insts
protected

◆ isIMS

bool CmusPlayer::isIMS
protected

◆ majorVersion

uint8_t CmusPlayer::majorVersion
protected

◆ minorVersion

uint8_t CmusPlayer::minorVersion
protected

◆ nrTimbre

uint16_t CmusPlayer::nrTimbre
protected

◆ pitchBRange

uint8_t CmusPlayer::pitchBRange
protected

◆ pos

unsigned long CmusPlayer::pos
protected

◆ songend

bool CmusPlayer::songend
protected

◆ soundMode

uint8_t CmusPlayer::soundMode
protected

◆ status

uint8_t CmusPlayer::status
protected

◆ tickBeat

uint8_t CmusPlayer::tickBeat
protected

◆ ticks

uint32_t CmusPlayer::ticks
protected

◆ timer

float CmusPlayer::timer
protected

◆ tuneName

char CmusPlayer::tuneName[TUNE_NAME_SIZE]
protected

◆ volume

uint8_t CmusPlayer::volume[MAX_VOICES]
protected

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