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

#include <sng.h>

Inheritance diagram for CsngPlayer:
CPlayer

Classes

struct  Sdata

Public Member Functions

 CsngPlayer (Copl *newopl)
 ~CsngPlayer ()
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 Attributes

struct { 
   char   id [4] 
   unsigned short   length 
   unsigned short   start 
   unsigned short   loop 
   unsigned char   delay 
   bool   compressed 
header
struct CsngPlayer::Sdatadata
unsigned char del
unsigned short pos
bool songend
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

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

◆ CsngPlayer()

CsngPlayer::CsngPlayer ( Copl * newopl)
inline

◆ ~CsngPlayer()

CsngPlayer::~CsngPlayer ( )
inline

Member Function Documentation

◆ factory()

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

◆ getrefresh()

float CsngPlayer::getrefresh ( )
inlinevirtual

Implements CPlayer.

◆ gettype()

std::string CsngPlayer::gettype ( )
inlinevirtual

Implements CPlayer.

◆ load()

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

Implements CPlayer.

◆ rewind()

void CsngPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ update()

bool CsngPlayer::update ( )
virtual

Implements CPlayer.

Member Data Documentation

◆ compressed

bool CsngPlayer::compressed

◆ data

struct CsngPlayer::Sdata * CsngPlayer::data
protected

◆ del

unsigned char CsngPlayer::del
protected

◆ delay

unsigned char CsngPlayer::delay

◆ [struct]

struct { ... } CsngPlayer::header

◆ id

char CsngPlayer::id[4]

◆ length

unsigned short CsngPlayer::length

◆ loop

unsigned short CsngPlayer::loop

◆ pos

unsigned short CsngPlayer::pos
protected

◆ songend

bool CsngPlayer::songend
protected

◆ start

unsigned short CsngPlayer::start

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