comparison Plugins/Input/adplug/core/rix.h @ 1280:6ad7eb96dd26 trunk

[svn] Sync with upstream. This adds Westwood ADL format support.
author chainsaw
date Sat, 17 Jun 2006 16:17:51 -0700
parents 3eff4f35b39d
children c71e2ef2dcf4
comparison
equal deleted inserted replaced
1279:01d2aa561b53 1280:6ad7eb96dd26
26 { 26 {
27 public: 27 public:
28 static CPlayer *factory(Copl *newopl); 28 static CPlayer *factory(Copl *newopl);
29 29
30 CrixPlayer(Copl *newopl); 30 CrixPlayer(Copl *newopl);
31 ~CrixPlayer() {}; 31 ~CrixPlayer();
32 32
33 bool load(const std::string &filename, const CFileProvider &fp); 33 bool load(const std::string &filename, const CFileProvider &fp);
34 bool update(); 34 bool update();
35 void rewind(int subsong); 35 void rewind(int subsong);
36 float getrefresh(); 36 float getrefresh();
55 unsigned char band_low; 55 unsigned char band_low;
56 unsigned short e0_reg_flag; 56 unsigned short e0_reg_flag;
57 unsigned char bd_modify; 57 unsigned char bd_modify;
58 int sustain; 58 int sustain;
59 int dro_end; 59 int dro_end;
60 unsigned char buf_addr[327680]; /* rix files' buffer */ 60 unsigned char *buf_addr; /* rix files' buffer */
61 unsigned short buffer[300]; 61 unsigned short buffer[300];
62 unsigned short a0b0_data2[11]; 62 unsigned short a0b0_data2[11];
63 unsigned char a0b0_data3[18]; 63 unsigned char a0b0_data3[18];
64 unsigned char a0b0_data4[18]; 64 unsigned char a0b0_data4[18];
65 unsigned char a0b0_data5[96]; 65 unsigned char a0b0_data5[96];
66 unsigned char addrs_head[96]; 66 unsigned char addrs_head[96];
67 unsigned short insbuf[28]; 67 unsigned short insbuf[28];
68 unsigned short displace[11]; 68 unsigned short displace[11];
69 ADDT reg_bufs[18]; 69 ADDT reg_bufs[18];
70 unsigned long pos,length; 70 unsigned long pos,length;
71 unsigned long msdone,mstotal; 71 unsigned char index;
72 unsigned short delay; 72 unsigned short delay;
73 unsigned char index, opl3_mode;
74 enum OplMode {
75 ModeOPL2,ModeOPL3,ModeDUALOPL2
76 } mode;
77 73
78 static const unsigned char adflag[18]; 74 static const unsigned char adflag[18];
79 static const unsigned char reg_data[18]; 75 static const unsigned char reg_data[18];
80 static const unsigned char ad_C0_offs[18]; 76 static const unsigned char ad_C0_offs[18];
81 static const unsigned char modify[28]; 77 static const unsigned char modify[28];