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

#include <bmf.h>

Inheritance diagram for CxadbmfPlayer:
CxadPlayer CPlayer

Classes

struct  bmf_event

Public Member Functions

 CxadbmfPlayer (Copl *newopl)
 ~CxadbmfPlayer ()
Public Member Functions inherited from CxadPlayer
 CxadPlayer (Copl *newopl)
 ~CxadPlayer ()
bool load (const std::string &filename, const CFileProvider &fp)
bool update ()
void rewind (int subsong)
float getrefresh ()
std::string gettype ()
std::string gettitle ()
std::string getauthor ()
std::string getinstrument (unsigned int i)
unsigned int getinstruments ()
unsigned int getspeed ()
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 getdesc ()
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)
Static Public Member Functions inherited from CxadPlayer
static CPlayerfactory (Copl *newopl)

Protected Types

enum  { BMF0_9B , BMF1_1 , BMF1_2 }
Protected Types inherited from CxadPlayer
enum  {
  HYP =1 , PSI , FLASH , BMF ,
  RAT , HYBRID
}

Protected Member Functions

bool xadplayer_load ()
void xadplayer_rewind (int subsong)
void xadplayer_update ()
float xadplayer_getrefresh ()
std::string xadplayer_gettype ()
std::string xadplayer_gettitle ()
std::string xadplayer_getauthor ()
std::string xadplayer_getinstrument (unsigned int i)
unsigned int xadplayer_getinstruments ()
unsigned int xadplayer_getspeed ()
Protected Member Functions inherited from CxadPlayer
void opl_write (int reg, int val)

Protected Attributes

struct { 
   unsigned char   version 
   char   title [36] 
   char   author [36] 
   float   timer 
   unsigned char   speed 
   struct { 
      char   name [11] 
      unsigned char   data [13] 
   }   instruments [32]
   bmf_event   streams [9][1024] 
   int   active_streams 
   struct { 
      unsigned short   stream_position 
      unsigned char   delay 
      unsigned short   loop_position 
      unsigned char   loop_counter 
   }   channel [9]
bmf
Protected Attributes inherited from CxadPlayer
struct CxadPlayer::xad_header xad
unsigned char * tune
unsigned long tune_size
struct { 
   int   playing 
   int   looping 
   unsigned char   speed 
   unsigned char   speed_counter 
plr
unsigned char adlib [256]
Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb

Private Member Functions

int __bmf_convert_stream (unsigned char *stream, int channel)

Static Private Attributes

static const unsigned char bmf_adlib_registers [117]
static const unsigned short bmf_notes [12]
static const unsigned short bmf_notes_2 [12]
static const unsigned char bmf_default_instrument [13]

Additional Inherited Members

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
BMF0_9B 
BMF1_1 
BMF1_2 

Constructor & Destructor Documentation

◆ CxadbmfPlayer()

CxadbmfPlayer::CxadbmfPlayer ( Copl * newopl)
inline

◆ ~CxadbmfPlayer()

CxadbmfPlayer::~CxadbmfPlayer ( )
inline

Member Function Documentation

◆ __bmf_convert_stream()

int CxadbmfPlayer::__bmf_convert_stream ( unsigned char * stream,
int channel )
private

◆ factory()

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

◆ xadplayer_getauthor()

std::string CxadbmfPlayer::xadplayer_getauthor ( )
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_getinstrument()

std::string CxadbmfPlayer::xadplayer_getinstrument ( unsigned int i)
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_getinstruments()

unsigned int CxadbmfPlayer::xadplayer_getinstruments ( )
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_getrefresh()

float CxadbmfPlayer::xadplayer_getrefresh ( )
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_getspeed()

unsigned int CxadbmfPlayer::xadplayer_getspeed ( )
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_gettitle()

std::string CxadbmfPlayer::xadplayer_gettitle ( )
protectedvirtual

Reimplemented from CxadPlayer.

◆ xadplayer_gettype()

std::string CxadbmfPlayer::xadplayer_gettype ( )
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_load()

bool CxadbmfPlayer::xadplayer_load ( )
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_rewind()

void CxadbmfPlayer::xadplayer_rewind ( int subsong)
protectedvirtual

Implements CxadPlayer.

◆ xadplayer_update()

void CxadbmfPlayer::xadplayer_update ( )
protectedvirtual

Implements CxadPlayer.

Member Data Documentation

◆ active_streams

int CxadbmfPlayer::active_streams

◆ author

char CxadbmfPlayer::author[36]

◆ [struct]

struct { ... } CxadbmfPlayer::bmf

◆ bmf_adlib_registers

const unsigned char CxadbmfPlayer::bmf_adlib_registers
staticprivate
Initial value:
=
{
0x20, 0x23, 0x40, 0x43, 0x60, 0x63, 0x80, 0x83, 0xA0, 0xB0, 0xC0, 0xE0, 0xE3,
0x21, 0x24, 0x41, 0x44, 0x61, 0x64, 0x81, 0x84, 0xA1, 0xB1, 0xC1, 0xE1, 0xE4,
0x22, 0x25, 0x42, 0x45, 0x62, 0x65, 0x82, 0x85, 0xA2, 0xB2, 0xC2, 0xE2, 0xE5,
0x28, 0x2B, 0x48, 0x4B, 0x68, 0x6B, 0x88, 0x8B, 0xA3, 0xB3, 0xC3, 0xE8, 0xEB,
0x29, 0x2C, 0x49, 0x4C, 0x69, 0x6C, 0x89, 0x8C, 0xA4, 0xB4, 0xC4, 0xE9, 0xEC,
0x2A, 0x2D, 0x4A, 0x4D, 0x6A, 0x6D, 0x8A, 0x8D, 0xA5, 0xB5, 0xC5, 0xEA, 0xED,
0x30, 0x33, 0x50, 0x53, 0x70, 0x73, 0x90, 0x93, 0xA6, 0xB6, 0xC6, 0xF0, 0xF3,
0x31, 0x34, 0x51, 0x54, 0x71, 0x74, 0x91, 0x94, 0xA7, 0xB7, 0xC7, 0xF1, 0xF4,
0x32, 0x35, 0x52, 0x55, 0x72, 0x75, 0x92, 0x95, 0xA8, 0xB8, 0xC8, 0xF2, 0xF5
}

◆ bmf_default_instrument

const unsigned char CxadbmfPlayer::bmf_default_instrument
staticprivate
Initial value:
=
{
0x01, 0x01, 0x3F, 0x3F, 0x00, 0x00, 0xF0, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00
}

◆ bmf_notes

const unsigned short CxadbmfPlayer::bmf_notes
staticprivate
Initial value:
=
{
0x157, 0x16B, 0x181, 0x198, 0x1B0, 0x1CA, 0x1E5, 0x202, 0x220, 0x241, 0x263, 0x287
}

◆ bmf_notes_2

const unsigned short CxadbmfPlayer::bmf_notes_2
staticprivate
Initial value:
=
{
0x159, 0x16D, 0x183, 0x19A, 0x1B2, 0x1CC, 0x1E8, 0x205, 0x223, 0x244, 0x267, 0x28B
}

◆ [struct]

struct { ... } CxadbmfPlayer::channel[9]

◆ data

unsigned char CxadbmfPlayer::data[13]

◆ delay

unsigned char CxadbmfPlayer::delay

◆ [struct]

struct { ... } CxadbmfPlayer::instruments[32]

◆ loop_counter

unsigned char CxadbmfPlayer::loop_counter

◆ loop_position

unsigned short CxadbmfPlayer::loop_position

◆ name

char CxadbmfPlayer::name[11]

◆ speed

unsigned char CxadbmfPlayer::speed

◆ stream_position

unsigned short CxadbmfPlayer::stream_position

◆ streams

bmf_event CxadbmfPlayer::streams[9][1024]

◆ timer

float CxadbmfPlayer::timer

◆ title

char CxadbmfPlayer::title[36]

◆ version

unsigned char CxadbmfPlayer::version

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