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

#include <u6m.h>

Inheritance diagram for Cu6mPlayer:
CPlayer

Classes

struct  byte_pair
struct  subsong_info
struct  dict_entry
struct  data_block
class  MyDict

Public Member Functions

 Cu6mPlayer (Copl *newopl)
 ~Cu6mPlayer ()
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 Member Functions

void command_loop ()
unsigned char read_song_byte ()
signed char read_signed_song_byte ()
void dec_clip (int &)
byte_pair expand_freq_byte (unsigned char)
void set_adlib_freq (int channel, byte_pair freq_word)
void set_adlib_freq_no_update (int channel, byte_pair freq_word)
void set_carrier_mf (int channel, unsigned char mute_factor)
void set_modulator_mf (int channel, unsigned char mute_factor)
void freq_slide (int channel)
void vibrato (int channel)
void mf_slide (int channel)
void command_0 (int channel)
void command_1 (int channel)
void command_2 (int channel)
void command_3 (int channel)
void command_4 (int channel)
void command_5 (int channel)
void command_6 (int channel)
void command_7 (int channel)
void command_81 ()
void command_82 ()
void command_83 ()
void command_85 ()
void command_86 ()
void command_E ()
void command_F ()
void out_adlib (unsigned char adlib_register, unsigned char adlib_data)
void out_adlib_opcell (int channel, bool carrier, unsigned char adlib_register, unsigned char out_byte)
bool lzw_decompress (data_block source, data_block dest)
int get_next_codeword (long &bits_read, unsigned char *source, int codeword_size)
void output_root (unsigned char root, unsigned char *destination, long &position)
void get_string (int codeword, MyDict &dictionary, std::stack< unsigned char > &root_stack)

Protected Attributes

long played_ticks
unsigned char * song_data
bool driver_active
bool songend
int song_pos
int loop_position
int read_delay
std::stack< subsong_infosubsong_stack
int instrument_offsets [9]
unsigned char vb_current_value [9]
unsigned char vb_double_amplitude [9]
unsigned char vb_multiplier [9]
unsigned char vb_direction_flag [9]
unsigned char carrier_mf [9]
signed char carrier_mf_signed_delta [9]
unsigned char carrier_mf_mod_delay_backup [9]
unsigned char carrier_mf_mod_delay [9]
byte_pair channel_freq [9]
signed char channel_freq_signed_delta [9]
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

◆ Cu6mPlayer()

Cu6mPlayer::Cu6mPlayer ( Copl * newopl)
inline

◆ ~Cu6mPlayer()

Cu6mPlayer::~Cu6mPlayer ( )
inline

Member Function Documentation

◆ command_0()

void Cu6mPlayer::command_0 ( int channel)
protected

◆ command_1()

void Cu6mPlayer::command_1 ( int channel)
protected

◆ command_2()

void Cu6mPlayer::command_2 ( int channel)
protected

◆ command_3()

void Cu6mPlayer::command_3 ( int channel)
protected

◆ command_4()

void Cu6mPlayer::command_4 ( int channel)
protected

◆ command_5()

void Cu6mPlayer::command_5 ( int channel)
protected

◆ command_6()

void Cu6mPlayer::command_6 ( int channel)
protected

◆ command_7()

void Cu6mPlayer::command_7 ( int channel)
protected

◆ command_81()

void Cu6mPlayer::command_81 ( )
protected

◆ command_82()

void Cu6mPlayer::command_82 ( )
protected

◆ command_83()

void Cu6mPlayer::command_83 ( )
protected

◆ command_85()

void Cu6mPlayer::command_85 ( )
protected

◆ command_86()

void Cu6mPlayer::command_86 ( )
protected

◆ command_E()

void Cu6mPlayer::command_E ( )
protected

◆ command_F()

void Cu6mPlayer::command_F ( )
protected

◆ command_loop()

void Cu6mPlayer::command_loop ( )
protected

◆ dec_clip()

void Cu6mPlayer::dec_clip ( int & param)
protected

◆ expand_freq_byte()

Cu6mPlayer::byte_pair Cu6mPlayer::expand_freq_byte ( unsigned char freq_byte)
protected

◆ factory()

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

◆ freq_slide()

void Cu6mPlayer::freq_slide ( int channel)
protected

◆ get_next_codeword()

int Cu6mPlayer::get_next_codeword ( long & bits_read,
unsigned char * source,
int codeword_size )
protected

◆ get_string()

void Cu6mPlayer::get_string ( int codeword,
Cu6mPlayer::MyDict & dictionary,
std::stack< unsigned char > & root_stack )
protected

◆ getrefresh()

float Cu6mPlayer::getrefresh ( )
virtual

Implements CPlayer.

◆ gettype()

std::string Cu6mPlayer::gettype ( )
inlinevirtual

Implements CPlayer.

◆ load()

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

Implements CPlayer.

◆ lzw_decompress()

bool Cu6mPlayer::lzw_decompress ( Cu6mPlayer::data_block source,
Cu6mPlayer::data_block dest )
protected

◆ mf_slide()

void Cu6mPlayer::mf_slide ( int channel)
protected

◆ out_adlib()

void Cu6mPlayer::out_adlib ( unsigned char adlib_register,
unsigned char adlib_data )
protected

◆ out_adlib_opcell()

void Cu6mPlayer::out_adlib_opcell ( int channel,
bool carrier,
unsigned char adlib_register,
unsigned char out_byte )
protected

◆ output_root()

void Cu6mPlayer::output_root ( unsigned char root,
unsigned char * destination,
long & position )
protected

◆ read_signed_song_byte()

signed char Cu6mPlayer::read_signed_song_byte ( )
protected

◆ read_song_byte()

unsigned char Cu6mPlayer::read_song_byte ( )
protected

◆ rewind()

void Cu6mPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ set_adlib_freq()

void Cu6mPlayer::set_adlib_freq ( int channel,
Cu6mPlayer::byte_pair freq_word )
protected

◆ set_adlib_freq_no_update()

void Cu6mPlayer::set_adlib_freq_no_update ( int channel,
Cu6mPlayer::byte_pair freq_word )
protected

◆ set_carrier_mf()

void Cu6mPlayer::set_carrier_mf ( int channel,
unsigned char mute_factor )
protected

◆ set_modulator_mf()

void Cu6mPlayer::set_modulator_mf ( int channel,
unsigned char mute_factor )
protected

◆ update()

bool Cu6mPlayer::update ( )
virtual

Implements CPlayer.

◆ vibrato()

void Cu6mPlayer::vibrato ( int channel)
protected

Member Data Documentation

◆ carrier_mf

unsigned char Cu6mPlayer::carrier_mf[9]
protected

◆ carrier_mf_mod_delay

unsigned char Cu6mPlayer::carrier_mf_mod_delay[9]
protected

◆ carrier_mf_mod_delay_backup

unsigned char Cu6mPlayer::carrier_mf_mod_delay_backup[9]
protected

◆ carrier_mf_signed_delta

signed char Cu6mPlayer::carrier_mf_signed_delta[9]
protected

◆ channel_freq

byte_pair Cu6mPlayer::channel_freq[9]
protected

◆ channel_freq_signed_delta

signed char Cu6mPlayer::channel_freq_signed_delta[9]
protected

◆ driver_active

bool Cu6mPlayer::driver_active
protected

◆ instrument_offsets

int Cu6mPlayer::instrument_offsets[9]
protected

◆ loop_position

int Cu6mPlayer::loop_position
protected

◆ played_ticks

long Cu6mPlayer::played_ticks
protected

◆ read_delay

int Cu6mPlayer::read_delay
protected

◆ song_data

unsigned char* Cu6mPlayer::song_data
protected

◆ song_pos

int Cu6mPlayer::song_pos
protected

◆ songend

bool Cu6mPlayer::songend
protected

◆ subsong_stack

std::stack<subsong_info> Cu6mPlayer::subsong_stack
protected

◆ vb_current_value

unsigned char Cu6mPlayer::vb_current_value[9]
protected

◆ vb_direction_flag

unsigned char Cu6mPlayer::vb_direction_flag[9]
protected

◆ vb_double_amplitude

unsigned char Cu6mPlayer::vb_double_amplitude[9]
protected

◆ vb_multiplier

unsigned char Cu6mPlayer::vb_multiplier[9]
protected

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