| 1 | /* |
| 2 | * This source code is public domain. |
| 3 | * |
| 4 | * Authors: Olivier Lapicque <[email protected]>, |
| 5 | * Adam Goode <[email protected]> (endian and char fixes for PPC) |
| 6 | */ |
| 7 | |
| 8 | #ifndef MP_SNDFILE_H |
| 9 | #define MP_SNDFILE_Hcxx . . $ `ext/psmplug/sndfile.h:9:9`! |
| 10 | |
| 11 | #ifdef UNDER_CE |
| 12 | int _strnicmp(const char *str1,const char *str2, int n); |
| 13 | #endif |
| 14 | |
| 15 | #ifndef _LPCBYTE_DEFINED |
| 16 | #define _LPCBYTE_DEFINEDcxx . . $ `ext/psmplug/sndfile.h:16:9`! |
| 17 | typedef const BYTEcxx . . $ BYTE# * LPCBYTEcxx . . $ LPCBYTE#; |
| 18 | #endif |
| 19 | |
| 20 | #define MOD_AMIGAC2cxx . . $ `ext/psmplug/sndfile.h:20:9`! 0x1AB |
| 21 | #define MAX_SAMPLE_LENGTHcxx . . $ `ext/psmplug/sndfile.h:21:9`! 16000000 |
| 22 | #define MAX_SAMPLE_RATEcxx . . $ `ext/psmplug/sndfile.h:22:9`! 192000 |
| 23 | #define MAX_ORDERScxx . . $ `ext/psmplug/sndfile.h:23:9`! 256 |
| 24 | #define MAX_PATTERNScxx . . $ `ext/psmplug/sndfile.h:24:9`! 240 |
| 25 | #define MAX_SAMPLEScxx . . $ `ext/psmplug/sndfile.h:25:9`! 240 |
| 26 | #define MAX_INSTRUMENTScxx . . $ `ext/psmplug/sndfile.h:26:9`! MAX_SAMPLEScxx . . $ `ext/psmplug/sndfile.h:25:9`! |
| 27 | #define MAX_CHANNELScxx . . $ `ext/psmplug/sndfile.h:27:9`! 128 |
| 28 | #define MAX_BASECHANNELScxx . . $ `ext/psmplug/sndfile.h:28:9`! 64 |
| 29 | #define MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`! 32 |
| 30 | #define MIN_PERIODcxx . . $ `ext/psmplug/sndfile.h:30:9`! 0x0020 |
| 31 | #define MAX_PERIODcxx . . $ `ext/psmplug/sndfile.h:31:9`! 0xFFFF |
| 32 | #define MAX_PATTERNNAMEcxx . . $ `ext/psmplug/sndfile.h:32:9`! 32 |
| 33 | #define MAX_CHANNELNAMEcxx . . $ `ext/psmplug/sndfile.h:33:9`! 20 |
| 34 | #define MAX_INFONAMEcxx . . $ `ext/psmplug/sndfile.h:34:9`! 80 |
| 35 | #define MAX_EQ_BANDScxx . . $ `ext/psmplug/sndfile.h:35:9`! 6 |
| 36 | #define MAX_MIXPLUGINScxx . . $ `ext/psmplug/sndfile.h:36:9`! 8 |
| 37 | |
| 38 | |
| 39 | #define MOD_TYPE_NONEcxx . . $ `ext/psmplug/sndfile.h:39:9`! 0x00 |
| 40 | #define MOD_TYPE_MODcxx . . $ `ext/psmplug/sndfile.h:40:9`! 0x01 |
| 41 | #define MOD_TYPE_S3Mcxx . . $ `ext/psmplug/sndfile.h:41:9`! 0x02 |
| 42 | #define MOD_TYPE_XMcxx . . $ `ext/psmplug/sndfile.h:42:9`! 0x04 |
| 43 | #define MOD_TYPE_MEDcxx . . $ `ext/psmplug/sndfile.h:43:9`! 0x08 |
| 44 | #define MOD_TYPE_MTMcxx . . $ `ext/psmplug/sndfile.h:44:9`! 0x10 |
| 45 | #define MOD_TYPE_ITcxx . . $ `ext/psmplug/sndfile.h:45:9`! 0x20 |
| 46 | #define MOD_TYPE_669cxx . . $ `ext/psmplug/sndfile.h:46:9`! 0x40 |
| 47 | #define MOD_TYPE_ULTcxx . . $ `ext/psmplug/sndfile.h:47:9`! 0x80 |
| 48 | #define MOD_TYPE_STMcxx . . $ `ext/psmplug/sndfile.h:48:9`! 0x100 |
| 49 | #define MOD_TYPE_FARcxx . . $ `ext/psmplug/sndfile.h:49:9`! 0x200 |
| 50 | #define MOD_TYPE_WAVcxx . . $ `ext/psmplug/sndfile.h:50:9`! 0x400 |
| 51 | #define MOD_TYPE_AMFcxx . . $ `ext/psmplug/sndfile.h:51:9`! 0x800 |
| 52 | #define MOD_TYPE_AMScxx . . $ `ext/psmplug/sndfile.h:52:9`! 0x1000 |
| 53 | #define MOD_TYPE_DSMcxx . . $ `ext/psmplug/sndfile.h:53:9`! 0x2000 |
| 54 | #define MOD_TYPE_MDLcxx . . $ `ext/psmplug/sndfile.h:54:9`! 0x4000 |
| 55 | #define MOD_TYPE_OKTcxx . . $ `ext/psmplug/sndfile.h:55:9`! 0x8000 |
| 56 | #define MOD_TYPE_MIDcxx . . $ `ext/psmplug/sndfile.h:56:9`! 0x10000 |
| 57 | #define MOD_TYPE_DMFcxx . . $ `ext/psmplug/sndfile.h:57:9`! 0x20000 |
| 58 | #define MOD_TYPE_PTMcxx . . $ `ext/psmplug/sndfile.h:58:9`! 0x40000 |
| 59 | #define MOD_TYPE_DBMcxx . . $ `ext/psmplug/sndfile.h:59:9`! 0x80000 |
| 60 | #define MOD_TYPE_MT2cxx . . $ `ext/psmplug/sndfile.h:60:9`! 0x100000 |
| 61 | #define MOD_TYPE_AMF0cxx . . $ `ext/psmplug/sndfile.h:61:9`! 0x200000 |
| 62 | #define MOD_TYPE_PSMcxx . . $ `ext/psmplug/sndfile.h:62:9`! 0x400000 |
| 63 | #define MOD_TYPE_J2Bcxx . . $ `ext/psmplug/sndfile.h:63:9`! 0x800000 |
| 64 | #define MOD_TYPE_ABCcxx . . $ `ext/psmplug/sndfile.h:64:9`! 0x1000000 |
| 65 | #define MOD_TYPE_PATcxx . . $ `ext/psmplug/sndfile.h:65:9`! 0x2000000 |
| 66 | #define MOD_TYPE_UMXcxx . . $ `ext/psmplug/sndfile.h:66:9`! 0x80000000 // Fake type |
| 67 | #define MAX_MODTYPEcxx . . $ `ext/psmplug/sndfile.h:67:9`! 24 |
| 68 | |
| 69 | |
| 70 | |
| 71 | // Channel flags: |
| 72 | // Bits 0-7: Sample Flags |
| 73 | #define CHN_16BITcxx . . $ `ext/psmplug/sndfile.h:73:9`! 0x01 |
| 74 | #define CHN_LOOPcxx . . $ `ext/psmplug/sndfile.h:74:9`! 0x02 |
| 75 | #define CHN_PINGPONGLOOPcxx . . $ `ext/psmplug/sndfile.h:75:9`! 0x04 |
| 76 | #define CHN_SUSTAINLOOPcxx . . $ `ext/psmplug/sndfile.h:76:9`! 0x08 |
| 77 | #define CHN_PINGPONGSUSTAINcxx . . $ `ext/psmplug/sndfile.h:77:9`! 0x10 |
| 78 | #define CHN_PANNINGcxx . . $ `ext/psmplug/sndfile.h:78:9`! 0x20 |
| 79 | #define CHN_STEREOcxx . . $ `ext/psmplug/sndfile.h:79:9`! 0x40 |
| 80 | #define CHN_PINGPONGFLAGcxx . . $ `ext/psmplug/sndfile.h:80:9`! 0x80 |
| 81 | // Bits 8-31: Channel Flags |
| 82 | #define CHN_MUTEcxx . . $ `ext/psmplug/sndfile.h:82:9`! 0x100 |
| 83 | #define CHN_KEYOFFcxx . . $ `ext/psmplug/sndfile.h:83:9`! 0x200 |
| 84 | #define CHN_NOTEFADEcxx . . $ `ext/psmplug/sndfile.h:84:9`! 0x400 |
| 85 | #define CHN_SURROUNDcxx . . $ `ext/psmplug/sndfile.h:85:9`! 0x800 |
| 86 | #define CHN_NOIDOcxx . . $ `ext/psmplug/sndfile.h:86:9`! 0x1000 |
| 87 | #define CHN_HQSRCcxx . . $ `ext/psmplug/sndfile.h:87:9`! 0x2000 |
| 88 | #define CHN_FILTERcxx . . $ `ext/psmplug/sndfile.h:88:9`! 0x4000 |
| 89 | #define CHN_VOLUMERAMPcxx . . $ `ext/psmplug/sndfile.h:89:9`! 0x8000 |
| 90 | #define CHN_VIBRATOcxx . . $ `ext/psmplug/sndfile.h:90:9`! 0x10000 |
| 91 | #define CHN_TREMOLOcxx . . $ `ext/psmplug/sndfile.h:91:9`! 0x20000 |
| 92 | #define CHN_PANBRELLOcxx . . $ `ext/psmplug/sndfile.h:92:9`! 0x40000 |
| 93 | #define CHN_PORTAMENTOcxx . . $ `ext/psmplug/sndfile.h:93:9`! 0x80000 |
| 94 | #define CHN_GLISSANDOcxx . . $ `ext/psmplug/sndfile.h:94:9`! 0x100000 |
| 95 | #define CHN_VOLENVcxx . . $ `ext/psmplug/sndfile.h:95:9`! 0x200000 |
| 96 | #define CHN_PANENVcxx . . $ `ext/psmplug/sndfile.h:96:9`! 0x400000 |
| 97 | #define CHN_PITCHENVcxx . . $ `ext/psmplug/sndfile.h:97:9`! 0x800000 |
| 98 | #define CHN_FASTVOLRAMPcxx . . $ `ext/psmplug/sndfile.h:98:9`! 0x1000000 |
| 99 | #define CHN_EXTRALOUDcxx . . $ `ext/psmplug/sndfile.h:99:9`! 0x2000000 |
| 100 | #define CHN_REVERBcxx . . $ `ext/psmplug/sndfile.h:100:9`! 0x4000000 |
| 101 | #define CHN_NOREVERBcxx . . $ `ext/psmplug/sndfile.h:101:9`! 0x8000000 |
| 102 | |
| 103 | |
| 104 | #define ENV_VOLUMEcxx . . $ `ext/psmplug/sndfile.h:104:9`! 0x0001 |
| 105 | #define ENV_VOLSUSTAINcxx . . $ `ext/psmplug/sndfile.h:105:9`! 0x0002 |
| 106 | #define ENV_VOLLOOPcxx . . $ `ext/psmplug/sndfile.h:106:9`! 0x0004 |
| 107 | #define ENV_PANNINGcxx . . $ `ext/psmplug/sndfile.h:107:9`! 0x0008 |
| 108 | #define ENV_PANSUSTAINcxx . . $ `ext/psmplug/sndfile.h:108:9`! 0x0010 |
| 109 | #define ENV_PANLOOPcxx . . $ `ext/psmplug/sndfile.h:109:9`! 0x0020 |
| 110 | #define ENV_PITCHcxx . . $ `ext/psmplug/sndfile.h:110:9`! 0x0040 |
| 111 | #define ENV_PITCHSUSTAINcxx . . $ `ext/psmplug/sndfile.h:111:9`! 0x0080 |
| 112 | #define ENV_PITCHLOOPcxx . . $ `ext/psmplug/sndfile.h:112:9`! 0x0100 |
| 113 | #define ENV_SETPANNINGcxx . . $ `ext/psmplug/sndfile.h:113:9`! 0x0200 |
| 114 | #define ENV_FILTERcxx . . $ `ext/psmplug/sndfile.h:114:9`! 0x0400 |
| 115 | #define ENV_VOLCARRYcxx . . $ `ext/psmplug/sndfile.h:115:9`! 0x0800 |
| 116 | #define ENV_PANCARRYcxx . . $ `ext/psmplug/sndfile.h:116:9`! 0x1000 |
| 117 | #define ENV_PITCHCARRYcxx . . $ `ext/psmplug/sndfile.h:117:9`! 0x2000 |
| 118 | |
| 119 | #define CMD_NONEcxx . . $ `ext/psmplug/sndfile.h:119:9`! 0 |
| 120 | #define CMD_ARPEGGIOcxx . . $ `ext/psmplug/sndfile.h:120:9`! 1 |
| 121 | #define CMD_PORTAMENTOUPcxx . . $ `ext/psmplug/sndfile.h:121:9`! 2 |
| 122 | #define CMD_PORTAMENTODOWNcxx . . $ `ext/psmplug/sndfile.h:122:9`! 3 |
| 123 | #define CMD_TONEPORTAMENTOcxx . . $ `ext/psmplug/sndfile.h:123:9`! 4 |
| 124 | #define CMD_VIBRATOcxx . . $ `ext/psmplug/sndfile.h:124:9`! 5 |
| 125 | #define CMD_TONEPORTAVOLcxx . . $ `ext/psmplug/sndfile.h:125:9`! 6 |
| 126 | #define CMD_VIBRATOVOLcxx . . $ `ext/psmplug/sndfile.h:126:9`! 7 |
| 127 | #define CMD_TREMOLOcxx . . $ `ext/psmplug/sndfile.h:127:9`! 8 |
| 128 | #define CMD_PANNING8cxx . . $ `ext/psmplug/sndfile.h:128:9`! 9 |
| 129 | #define CMD_OFFSETcxx . . $ `ext/psmplug/sndfile.h:129:9`! 10 |
| 130 | #define CMD_VOLUMESLIDEcxx . . $ `ext/psmplug/sndfile.h:130:9`! 11 |
| 131 | #define CMD_POSITIONJUMPcxx . . $ `ext/psmplug/sndfile.h:131:9`! 12 |
| 132 | #define CMD_VOLUMEcxx . . $ `ext/psmplug/sndfile.h:132:9`! 13 |
| 133 | #define CMD_PATTERNBREAKcxx . . $ `ext/psmplug/sndfile.h:133:9`! 14 |
| 134 | #define CMD_RETRIGcxx . . $ `ext/psmplug/sndfile.h:134:9`! 15 |
| 135 | #define CMD_SPEEDcxx . . $ `ext/psmplug/sndfile.h:135:9`! 16 |
| 136 | #define CMD_TEMPOcxx . . $ `ext/psmplug/sndfile.h:136:9`! 17 |
| 137 | #define CMD_TREMORcxx . . $ `ext/psmplug/sndfile.h:137:9`! 18 |
| 138 | #define CMD_MODCMDEXcxx . . $ `ext/psmplug/sndfile.h:138:9`! 19 |
| 139 | #define CMD_S3MCMDEXcxx . . $ `ext/psmplug/sndfile.h:139:9`! 20 |
| 140 | #define CMD_CHANNELVOLUMEcxx . . $ `ext/psmplug/sndfile.h:140:9`! 21 |
| 141 | #define CMD_CHANNELVOLSLIDEcxx . . $ `ext/psmplug/sndfile.h:141:9`! 22 |
| 142 | #define CMD_GLOBALVOLUMEcxx . . $ `ext/psmplug/sndfile.h:142:9`! 23 |
| 143 | #define CMD_GLOBALVOLSLIDEcxx . . $ `ext/psmplug/sndfile.h:143:9`! 24 |
| 144 | #define CMD_KEYOFFcxx . . $ `ext/psmplug/sndfile.h:144:9`! 25 |
| 145 | #define CMD_FINEVIBRATOcxx . . $ `ext/psmplug/sndfile.h:145:9`! 26 |
| 146 | #define CMD_PANBRELLOcxx . . $ `ext/psmplug/sndfile.h:146:9`! 27 |
| 147 | #define CMD_XFINEPORTAUPDOWNcxx . . $ `ext/psmplug/sndfile.h:147:9`! 28 |
| 148 | #define CMD_PANNINGSLIDEcxx . . $ `ext/psmplug/sndfile.h:148:9`! 29 |
| 149 | #define CMD_SETENVPOSITIONcxx . . $ `ext/psmplug/sndfile.h:149:9`! 30 |
| 150 | #define CMD_MIDIcxx . . $ `ext/psmplug/sndfile.h:150:9`! 31 |
| 151 | |
| 152 | |
| 153 | // Volume Column commands |
| 154 | #define VOLCMD_VOLUMEcxx . . $ `ext/psmplug/sndfile.h:154:9`! 1 |
| 155 | #define VOLCMD_PANNINGcxx . . $ `ext/psmplug/sndfile.h:155:9`! 2 |
| 156 | #define VOLCMD_VOLSLIDEUPcxx . . $ `ext/psmplug/sndfile.h:156:9`! 3 |
| 157 | #define VOLCMD_VOLSLIDEDOWNcxx . . $ `ext/psmplug/sndfile.h:157:9`! 4 |
| 158 | #define VOLCMD_FINEVOLUPcxx . . $ `ext/psmplug/sndfile.h:158:9`! 5 |
| 159 | #define VOLCMD_FINEVOLDOWNcxx . . $ `ext/psmplug/sndfile.h:159:9`! 6 |
| 160 | #define VOLCMD_VIBRATOSPEEDcxx . . $ `ext/psmplug/sndfile.h:160:9`! 7 |
| 161 | #define VOLCMD_VIBRATOcxx . . $ `ext/psmplug/sndfile.h:161:9`! 8 |
| 162 | #define VOLCMD_PANSLIDELEFTcxx . . $ `ext/psmplug/sndfile.h:162:9`! 9 |
| 163 | #define VOLCMD_PANSLIDERIGHTcxx . . $ `ext/psmplug/sndfile.h:163:9`! 10 |
| 164 | #define VOLCMD_TONEPORTAMENTOcxx . . $ `ext/psmplug/sndfile.h:164:9`! 11 |
| 165 | #define VOLCMD_PORTAUPcxx . . $ `ext/psmplug/sndfile.h:165:9`! 12 |
| 166 | #define VOLCMD_PORTADOWNcxx . . $ `ext/psmplug/sndfile.h:166:9`! 13 |
| 167 | |
| 168 | #define RSF_16BITcxx . . $ `ext/psmplug/sndfile.h:168:9`! 0x04 |
| 169 | #define RSF_STEREOcxx . . $ `ext/psmplug/sndfile.h:169:9`! 0x08 |
| 170 | |
| 171 | #define RS_PCM8Scxx . . $ `ext/psmplug/sndfile.h:171:9`! 0 // 8-bit signed |
| 172 | #define RS_PCM8Ucxx . . $ `ext/psmplug/sndfile.h:172:9`! 1 // 8-bit unsigned |
| 173 | #define RS_PCM8Dcxx . . $ `ext/psmplug/sndfile.h:173:9`! 2 // 8-bit delta values |
| 174 | #define RS_ADPCM4cxx . . $ `ext/psmplug/sndfile.h:174:9`! 3 // 4-bit ADPCM-packed |
| 175 | #define RS_PCM16Dcxx . . $ `ext/psmplug/sndfile.h:175:9`! 4 // 16-bit delta values |
| 176 | #define RS_PCM16Scxx . . $ `ext/psmplug/sndfile.h:176:9`! 5 // 16-bit signed |
| 177 | #define RS_PCM16Ucxx . . $ `ext/psmplug/sndfile.h:177:9`! 6 // 16-bit unsigned |
| 178 | #define RS_PCM16Mcxx . . $ `ext/psmplug/sndfile.h:178:9`! 7 // 16-bit motorola order |
| 179 | #define RS_STPCM8Scxx . . $ `ext/psmplug/sndfile.h:179:9`! (RS_PCM8S|RSF_STEREO) // stereo 8-bit signed |
| 180 | #define RS_STPCM8Ucxx . . $ `ext/psmplug/sndfile.h:180:9`! (RS_PCM8U|RSF_STEREO) // stereo 8-bit unsigned |
| 181 | #define RS_STPCM8Dcxx . . $ `ext/psmplug/sndfile.h:181:9`! (RS_PCM8D|RSF_STEREO) // stereo 8-bit delta values |
| 182 | #define RS_STPCM16Scxx . . $ `ext/psmplug/sndfile.h:182:9`! (RS_PCM16S|RSF_STEREO) // stereo 16-bit signed |
| 183 | #define RS_STPCM16Ucxx . . $ `ext/psmplug/sndfile.h:183:9`! (RS_PCM16U|RSF_STEREO) // stereo 16-bit unsigned |
| 184 | #define RS_STPCM16Dcxx . . $ `ext/psmplug/sndfile.h:184:9`! (RS_PCM16D|RSF_STEREO) // stereo 16-bit delta values |
| 185 | #define RS_STPCM16Mcxx . . $ `ext/psmplug/sndfile.h:185:9`! (RS_PCM16M|RSF_STEREO) // stereo 16-bit signed big endian |
| 186 | // IT 2.14 compressed samples |
| 187 | #define RS_IT2148cxx . . $ `ext/psmplug/sndfile.h:187:9`! 0x10 |
| 188 | #define RS_IT21416cxx . . $ `ext/psmplug/sndfile.h:188:9`! 0x14 |
| 189 | #define RS_IT2158cxx . . $ `ext/psmplug/sndfile.h:189:9`! 0x12 |
| 190 | #define RS_IT21516cxx . . $ `ext/psmplug/sndfile.h:190:9`! 0x16 |
| 191 | // AMS Packed Samples |
| 192 | #define RS_AMS8cxx . . $ `ext/psmplug/sndfile.h:192:9`! 0x11 |
| 193 | #define RS_AMS16cxx . . $ `ext/psmplug/sndfile.h:193:9`! 0x15 |
| 194 | // DMF Huffman compression |
| 195 | #define RS_DMF8cxx . . $ `ext/psmplug/sndfile.h:195:9`! 0x13 |
| 196 | #define RS_DMF16cxx . . $ `ext/psmplug/sndfile.h:196:9`! 0x17 |
| 197 | // MDL Huffman compression |
| 198 | #define RS_MDL8cxx . . $ `ext/psmplug/sndfile.h:198:9`! 0x20 |
| 199 | #define RS_MDL16cxx . . $ `ext/psmplug/sndfile.h:199:9`! 0x24 |
| 200 | #define RS_PTM8DTO16cxx . . $ `ext/psmplug/sndfile.h:200:9`! 0x25 |
| 201 | // Stereo Interleaved Samples |
| 202 | #define RS_STIPCM8Scxx . . $ `ext/psmplug/sndfile.h:202:9`! (RS_PCM8S|0x40|RSF_STEREO) // stereo 8-bit signed |
| 203 | #define RS_STIPCM8Ucxx . . $ `ext/psmplug/sndfile.h:203:9`! (RS_PCM8U|0x40|RSF_STEREO) // stereo 8-bit unsigned |
| 204 | #define RS_STIPCM16Scxx . . $ `ext/psmplug/sndfile.h:204:9`! (RS_PCM16S|0x40|RSF_STEREO) // stereo 16-bit signed |
| 205 | #define RS_STIPCM16Ucxx . . $ `ext/psmplug/sndfile.h:205:9`! (RS_PCM16U|0x40|RSF_STEREO) // stereo 16-bit unsigned |
| 206 | #define RS_STIPCM16Mcxx . . $ `ext/psmplug/sndfile.h:206:9`! (RS_PCM16M|0x40|RSF_STEREO) // stereo 16-bit signed big endian |
| 207 | // 24-bit signed |
| 208 | #define RS_PCM24Scxx . . $ `ext/psmplug/sndfile.h:208:9`! (RS_PCM16S|0x80) // mono 24-bit signed |
| 209 | #define RS_STIPCM24Scxx . . $ `ext/psmplug/sndfile.h:209:9`! (RS_PCM16S|0x80|RSF_STEREO) // stereo 24-bit signed |
| 210 | #define RS_PCM32Scxx . . $ `ext/psmplug/sndfile.h:210:9`! (RS_PCM16S|0xC0) // mono 24-bit signed |
| 211 | #define RS_STIPCM32Scxx . . $ `ext/psmplug/sndfile.h:211:9`! (RS_PCM16S|0xC0|RSF_STEREO) // stereo 24-bit signed |
| 212 | |
| 213 | // NNA types |
| 214 | #define NNA_NOTECUTcxx . . $ `ext/psmplug/sndfile.h:214:9`! 0 |
| 215 | #define NNA_CONTINUEcxx . . $ `ext/psmplug/sndfile.h:215:9`! 1 |
| 216 | #define NNA_NOTEOFFcxx . . $ `ext/psmplug/sndfile.h:216:9`! 2 |
| 217 | #define NNA_NOTEFADEcxx . . $ `ext/psmplug/sndfile.h:217:9`! 3 |
| 218 | |
| 219 | // DCT types |
| 220 | #define DCT_NONEcxx . . $ `ext/psmplug/sndfile.h:220:9`! 0 |
| 221 | #define DCT_NOTEcxx . . $ `ext/psmplug/sndfile.h:221:9`! 1 |
| 222 | #define DCT_SAMPLEcxx . . $ `ext/psmplug/sndfile.h:222:9`! 2 |
| 223 | #define DCT_INSTRUMENTcxx . . $ `ext/psmplug/sndfile.h:223:9`! 3 |
| 224 | |
| 225 | // DNA types |
| 226 | #define DNA_NOTECUTcxx . . $ `ext/psmplug/sndfile.h:226:9`! 0 |
| 227 | #define DNA_NOTEOFFcxx . . $ `ext/psmplug/sndfile.h:227:9`! 1 |
| 228 | #define DNA_NOTEFADEcxx . . $ `ext/psmplug/sndfile.h:228:9`! 2 |
| 229 | |
| 230 | // Mixer Hardware-Dependent features |
| 231 | #define SYSMIX_ENABLEMMXcxx . . $ `ext/psmplug/sndfile.h:231:9`! 0x01 |
| 232 | #define SYSMIX_WINDOWSNTcxx . . $ `ext/psmplug/sndfile.h:232:9`! 0x02 |
| 233 | #define SYSMIX_SLOWCPUcxx . . $ `ext/psmplug/sndfile.h:233:9`! 0x04 |
| 234 | #define SYSMIX_FASTCPUcxx . . $ `ext/psmplug/sndfile.h:234:9`! 0x08 |
| 235 | |
| 236 | // Module flags |
| 237 | #define SONG_EMBEDMIDICFGcxx . . $ `ext/psmplug/sndfile.h:237:9`! 0x0001 |
| 238 | #define SONG_FASTVOLSLIDEScxx . . $ `ext/psmplug/sndfile.h:238:9`! 0x0002 |
| 239 | #define SONG_ITOLDEFFECTScxx . . $ `ext/psmplug/sndfile.h:239:9`! 0x0004 |
| 240 | #define SONG_ITCOMPATMODEcxx . . $ `ext/psmplug/sndfile.h:240:9`! 0x0008 |
| 241 | #define SONG_LINEARSLIDEScxx . . $ `ext/psmplug/sndfile.h:241:9`! 0x0010 |
| 242 | #define SONG_PATTERNLOOPcxx . . $ `ext/psmplug/sndfile.h:242:9`! 0x0020 |
| 243 | #define SONG_STEPcxx . . $ `ext/psmplug/sndfile.h:243:9`! 0x0040 |
| 244 | #define SONG_PAUSEDcxx . . $ `ext/psmplug/sndfile.h:244:9`! 0x0080 |
| 245 | #define SONG_FADINGSONGcxx . . $ `ext/psmplug/sndfile.h:245:9`! 0x0100 |
| 246 | #define SONG_ENDREACHEDcxx . . $ `ext/psmplug/sndfile.h:246:9`! 0x0200 |
| 247 | #define SONG_GLOBALFADEcxx . . $ `ext/psmplug/sndfile.h:247:9`! 0x0400 |
| 248 | #define SONG_CPUVERYHIGHcxx . . $ `ext/psmplug/sndfile.h:248:9`! 0x0800 |
| 249 | #define SONG_FIRSTTICKcxx . . $ `ext/psmplug/sndfile.h:249:9`! 0x1000 |
| 250 | #define SONG_MPTFILTERMODEcxx . . $ `ext/psmplug/sndfile.h:250:9`! 0x2000 |
| 251 | #define SONG_SURROUNDPANcxx . . $ `ext/psmplug/sndfile.h:251:9`! 0x4000 |
| 252 | #define SONG_EXFILTERRANGEcxx . . $ `ext/psmplug/sndfile.h:252:9`! 0x8000 |
| 253 | #define SONG_AMIGALIMITScxx . . $ `ext/psmplug/sndfile.h:253:9`! 0x10000 |
| 254 | |
| 255 | // Global Options (Renderer) |
| 256 | #define SNDMIX_REVERSESTEREOcxx . . $ `ext/psmplug/sndfile.h:256:9`! 0x0001 |
| 257 | #define SNDMIX_NOISEREDUCTIONcxx . . $ `ext/psmplug/sndfile.h:257:9`! 0x0002 |
| 258 | #define SNDMIX_AGCcxx . . $ `ext/psmplug/sndfile.h:258:9`! 0x0004 |
| 259 | #define SNDMIX_NORESAMPLINGcxx . . $ `ext/psmplug/sndfile.h:259:9`! 0x0008 |
| 260 | #define SNDMIX_HQRESAMPLERcxx . . $ `ext/psmplug/sndfile.h:260:9`! 0x0010 |
| 261 | #define SNDMIX_MEGABASScxx . . $ `ext/psmplug/sndfile.h:261:9`! 0x0020 |
| 262 | #define SNDMIX_SURROUNDcxx . . $ `ext/psmplug/sndfile.h:262:9`! 0x0040 |
| 263 | #define SNDMIX_REVERBcxx . . $ `ext/psmplug/sndfile.h:263:9`! 0x0080 |
| 264 | #define SNDMIX_EQcxx . . $ `ext/psmplug/sndfile.h:264:9`! 0x0100 |
| 265 | #define SNDMIX_SOFTPANNINGcxx . . $ `ext/psmplug/sndfile.h:265:9`! 0x0200 |
| 266 | #define SNDMIX_ULTRAHQSRCMODEcxx . . $ `ext/psmplug/sndfile.h:266:9`! 0x0400 |
| 267 | // Misc Flags (can safely be turned on or off) |
| 268 | #define SNDMIX_DIRECTTODISKcxx . . $ `ext/psmplug/sndfile.h:268:9`! 0x10000 |
| 269 | #define SNDMIX_ENABLEMMXcxx . . $ `ext/psmplug/sndfile.h:269:9`! 0x20000 |
| 270 | #define SNDMIX_NOBACKWARDJUMPScxx . . $ `ext/psmplug/sndfile.h:270:9`! 0x40000 |
| 271 | #define SNDMIX_MAXDEFAULTPANcxx . . $ `ext/psmplug/sndfile.h:271:9`! 0x80000 // Used by the MOD loader |
| 272 | |
| 273 | |
| 274 | // Reverb Types (GM2 Presets) |
| 275 | enumcxx . . $ $anonymous_type_798a394f5240e7a0_0# { |
| 276 | REVERBTYPE_SMALLROOMcxx . . $ REVERBTYPE_SMALLROOM., |
| 277 | REVERBTYPE_MEDIUMROOMcxx . . $ REVERBTYPE_MEDIUMROOM., |
| 278 | REVERBTYPE_LARGEROOMcxx . . $ REVERBTYPE_LARGEROOM., |
| 279 | REVERBTYPE_SMALLHALLcxx . . $ REVERBTYPE_SMALLHALL., |
| 280 | REVERBTYPE_MEDIUMHALLcxx . . $ REVERBTYPE_MEDIUMHALL., |
| 281 | REVERBTYPE_LARGEHALLcxx . . $ REVERBTYPE_LARGEHALL., |
| 282 | NUM_REVERBTYPEScxx . . $ NUM_REVERBTYPES. |
| 283 | }; |
| 284 | |
| 285 | |
| 286 | enumcxx . . $ $anonymous_type_798a394f5240e7a0_1# { |
| 287 | SRCMODE_NEARESTcxx . . $ SRCMODE_NEAREST., |
| 288 | SRCMODE_LINEARcxx . . $ SRCMODE_LINEAR., |
| 289 | SRCMODE_SPLINEcxx . . $ SRCMODE_SPLINE., |
| 290 | SRCMODE_POLYPHASEcxx . . $ SRCMODE_POLYPHASE., |
| 291 | NUM_SRC_MODEScxx . . $ NUM_SRC_MODES. |
| 292 | }; |
| 293 | |
| 294 | |
| 295 | // Sample Struct |
| 296 | typedef struct _MODINSTRUMENTcxx . . $ _MODINSTRUMENT# |
| 297 | { |
| 298 | UINTcxx . . $ UINT# nLengthcxx . . $ _MODINSTRUMENT#nLength.,nLoopStartcxx . . $ _MODINSTRUMENT#nLoopStart.,nLoopEndcxx . . $ _MODINSTRUMENT#nLoopEnd.; |
| 299 | UINTcxx . . $ UINT# nSustainStartcxx . . $ _MODINSTRUMENT#nSustainStart., nSustainEndcxx . . $ _MODINSTRUMENT#nSustainEnd.; |
| 300 | signed char *pSamplecxx . . $ _MODINSTRUMENT#pSample.; |
| 301 | UINTcxx . . $ UINT# nC4Speedcxx . . $ _MODINSTRUMENT#nC4Speed.; |
| 302 | WORDcxx . . $ WORD# nPancxx . . $ _MODINSTRUMENT#nPan.; |
| 303 | WORDcxx . . $ WORD# nVolumecxx . . $ _MODINSTRUMENT#nVolume.; |
| 304 | WORDcxx . . $ WORD# nGlobalVolcxx . . $ _MODINSTRUMENT#nGlobalVol.; |
| 305 | WORDcxx . . $ WORD# uFlagscxx . . $ _MODINSTRUMENT#uFlags.; |
| 306 | signed char RelativeTonecxx . . $ _MODINSTRUMENT#RelativeTone.; |
| 307 | signed char nFineTunecxx . . $ _MODINSTRUMENT#nFineTune.; |
| 308 | BYTEcxx . . $ BYTE# nVibTypecxx . . $ _MODINSTRUMENT#nVibType.; |
| 309 | BYTEcxx . . $ BYTE# nVibSweepcxx . . $ _MODINSTRUMENT#nVibSweep.; |
| 310 | BYTEcxx . . $ BYTE# nVibDepthcxx . . $ _MODINSTRUMENT#nVibDepth.; |
| 311 | BYTEcxx . . $ BYTE# nVibRatecxx . . $ _MODINSTRUMENT#nVibRate.; |
| 312 | CHARcxx . . $ CHAR# namecxx . . $ _MODINSTRUMENT#name.[22]; |
| 313 | } MODINSTRUMENTcxx . . $ MODINSTRUMENT#; |
| 314 | |
| 315 | |
| 316 | // Instrument Struct |
| 317 | typedef struct _INSTRUMENTHEADERcxx . . $ _INSTRUMENTHEADER# |
| 318 | { |
| 319 | UINTcxx . . $ UINT# nFadeOutcxx . . $ _INSTRUMENTHEADER#nFadeOut.; |
| 320 | DWORDcxx . . $ DWORD# dwFlagscxx . . $ _INSTRUMENTHEADER#dwFlags.; |
| 321 | WORDcxx . . $ WORD# nGlobalVolcxx . . $ _INSTRUMENTHEADER#nGlobalVol.; |
| 322 | WORDcxx . . $ WORD# nPancxx . . $ _INSTRUMENTHEADER#nPan.; |
| 323 | WORDcxx . . $ WORD# VolPointscxx . . $ _INSTRUMENTHEADER#VolPoints.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 324 | WORDcxx . . $ WORD# PanPointscxx . . $ _INSTRUMENTHEADER#PanPoints.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 325 | WORDcxx . . $ WORD# PitchPointscxx . . $ _INSTRUMENTHEADER#PitchPoints.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 326 | BYTEcxx . . $ BYTE# VolEnvcxx . . $ _INSTRUMENTHEADER#VolEnv.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 327 | BYTEcxx . . $ BYTE# PanEnvcxx . . $ _INSTRUMENTHEADER#PanEnv.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 328 | BYTEcxx . . $ BYTE# PitchEnvcxx . . $ _INSTRUMENTHEADER#PitchEnv.[MAX_ENVPOINTScxx . . $ `ext/psmplug/sndfile.h:29:9`!]; |
| 329 | BYTEcxx . . $ BYTE# Keyboardcxx . . $ _INSTRUMENTHEADER#Keyboard.[128]; |
| 330 | BYTEcxx . . $ BYTE# NoteMapcxx . . $ _INSTRUMENTHEADER#NoteMap.[128]; |
| 331 | |
| 332 | BYTEcxx . . $ BYTE# nVolEnvcxx . . $ _INSTRUMENTHEADER#nVolEnv.; |
| 333 | BYTEcxx . . $ BYTE# nPanEnvcxx . . $ _INSTRUMENTHEADER#nPanEnv.; |
| 334 | BYTEcxx . . $ BYTE# nPitchEnvcxx . . $ _INSTRUMENTHEADER#nPitchEnv.; |
| 335 | BYTEcxx . . $ BYTE# nVolLoopStartcxx . . $ _INSTRUMENTHEADER#nVolLoopStart.; |
| 336 | BYTEcxx . . $ BYTE# nVolLoopEndcxx . . $ _INSTRUMENTHEADER#nVolLoopEnd.; |
| 337 | BYTEcxx . . $ BYTE# nVolSustainBegincxx . . $ _INSTRUMENTHEADER#nVolSustainBegin.; |
| 338 | BYTEcxx . . $ BYTE# nVolSustainEndcxx . . $ _INSTRUMENTHEADER#nVolSustainEnd.; |
| 339 | BYTEcxx . . $ BYTE# nPanLoopStartcxx . . $ _INSTRUMENTHEADER#nPanLoopStart.; |
| 340 | BYTEcxx . . $ BYTE# nPanLoopEndcxx . . $ _INSTRUMENTHEADER#nPanLoopEnd.; |
| 341 | BYTEcxx . . $ BYTE# nPanSustainBegincxx . . $ _INSTRUMENTHEADER#nPanSustainBegin.; |
| 342 | BYTEcxx . . $ BYTE# nPanSustainEndcxx . . $ _INSTRUMENTHEADER#nPanSustainEnd.; |
| 343 | BYTEcxx . . $ BYTE# nPitchLoopStartcxx . . $ _INSTRUMENTHEADER#nPitchLoopStart.; |
| 344 | BYTEcxx . . $ BYTE# nPitchLoopEndcxx . . $ _INSTRUMENTHEADER#nPitchLoopEnd.; |
| 345 | BYTEcxx . . $ BYTE# nPitchSustainBegincxx . . $ _INSTRUMENTHEADER#nPitchSustainBegin.; |
| 346 | BYTEcxx . . $ BYTE# nPitchSustainEndcxx . . $ _INSTRUMENTHEADER#nPitchSustainEnd.; |
| 347 | BYTEcxx . . $ BYTE# nNNAcxx . . $ _INSTRUMENTHEADER#nNNA.; |
| 348 | BYTEcxx . . $ BYTE# nDCTcxx . . $ _INSTRUMENTHEADER#nDCT.; |
| 349 | BYTEcxx . . $ BYTE# nDNAcxx . . $ _INSTRUMENTHEADER#nDNA.; |
| 350 | BYTEcxx . . $ BYTE# nPanSwingcxx . . $ _INSTRUMENTHEADER#nPanSwing.; |
| 351 | BYTEcxx . . $ BYTE# nVolSwingcxx . . $ _INSTRUMENTHEADER#nVolSwing.; |
| 352 | BYTEcxx . . $ BYTE# nIFCcxx . . $ _INSTRUMENTHEADER#nIFC.; |
| 353 | BYTEcxx . . $ BYTE# nIFRcxx . . $ _INSTRUMENTHEADER#nIFR.; |
| 354 | WORDcxx . . $ WORD# wMidiBankcxx . . $ _INSTRUMENTHEADER#wMidiBank.; |
| 355 | BYTEcxx . . $ BYTE# nMidiProgramcxx . . $ _INSTRUMENTHEADER#nMidiProgram.; |
| 356 | BYTEcxx . . $ BYTE# nMidiChannelcxx . . $ _INSTRUMENTHEADER#nMidiChannel.; |
| 357 | BYTEcxx . . $ BYTE# nMidiDrumKeycxx . . $ _INSTRUMENTHEADER#nMidiDrumKey.; |
| 358 | signed char nPPScxx . . $ _INSTRUMENTHEADER#nPPS.; |
| 359 | unsigned char nPPCcxx . . $ _INSTRUMENTHEADER#nPPC.; |
| 360 | CHARcxx . . $ CHAR# namecxx . . $ _INSTRUMENTHEADER#name.[32]; |
| 361 | CHARcxx . . $ CHAR# filenamecxx . . $ _INSTRUMENTHEADER#filename.[12]; |
| 362 | } INSTRUMENTHEADERcxx . . $ INSTRUMENTHEADER#; |
| 363 | |
| 364 | |
| 365 | // Channel Struct |
| 366 | typedef struct _MODCHANNELcxx . . $ _MODCHANNEL# |
| 367 | { |
| 368 | // First 32-bytes: Most used mixing information: don't change it |
| 369 | signed char * pCurrentSamplecxx . . $ _MODCHANNEL#pCurrentSample.; |
| 370 | DWORDcxx . . $ DWORD# nPoscxx . . $ _MODCHANNEL#nPos.; |
| 371 | DWORDcxx . . $ DWORD# nPosLocxx . . $ _MODCHANNEL#nPosLo.; // actually 16-bit |
| 372 | LONGcxx . . $ LONG# nInccxx . . $ _MODCHANNEL#nInc.; // 16.16 |
| 373 | LONGcxx . . $ LONG# nRightVolcxx . . $ _MODCHANNEL#nRightVol.; |
| 374 | LONGcxx . . $ LONG# nLeftVolcxx . . $ _MODCHANNEL#nLeftVol.; |
| 375 | LONGcxx . . $ LONG# nRightRampcxx . . $ _MODCHANNEL#nRightRamp.; |
| 376 | LONGcxx . . $ LONG# nLeftRampcxx . . $ _MODCHANNEL#nLeftRamp.; |
| 377 | // 2nd cache line |
| 378 | DWORDcxx . . $ DWORD# nLengthcxx . . $ _MODCHANNEL#nLength.; |
| 379 | DWORDcxx . . $ DWORD# dwFlagscxx . . $ _MODCHANNEL#dwFlags.; |
| 380 | DWORDcxx . . $ DWORD# nLoopStartcxx . . $ _MODCHANNEL#nLoopStart.; |
| 381 | DWORDcxx . . $ DWORD# nLoopEndcxx . . $ _MODCHANNEL#nLoopEnd.; |
| 382 | LONGcxx . . $ LONG# nRampRightVolcxx . . $ _MODCHANNEL#nRampRightVol.; |
| 383 | LONGcxx . . $ LONG# nRampLeftVolcxx . . $ _MODCHANNEL#nRampLeftVol.; |
| 384 | LONGcxx . . $ LONG# nFilter_Y1cxx . . $ _MODCHANNEL#nFilter_Y1., nFilter_Y2cxx . . $ _MODCHANNEL#nFilter_Y2., nFilter_Y3cxx . . $ _MODCHANNEL#nFilter_Y3., nFilter_Y4cxx . . $ _MODCHANNEL#nFilter_Y4.; |
| 385 | LONGcxx . . $ LONG# nFilter_A0cxx . . $ _MODCHANNEL#nFilter_A0., nFilter_B0cxx . . $ _MODCHANNEL#nFilter_B0., nFilter_B1cxx . . $ _MODCHANNEL#nFilter_B1.; |
| 386 | LONGcxx . . $ LONG# nROfscxx . . $ _MODCHANNEL#nROfs., nLOfscxx . . $ _MODCHANNEL#nLOfs.; |
| 387 | LONGcxx . . $ LONG# nRampLengthcxx . . $ _MODCHANNEL#nRampLength.; |
| 388 | // Information not used in the mixer |
| 389 | signed char * pSamplecxx . . $ _MODCHANNEL#pSample.; |
| 390 | LONGcxx . . $ LONG# nNewRightVolcxx . . $ _MODCHANNEL#nNewRightVol., nNewLeftVolcxx . . $ _MODCHANNEL#nNewLeftVol.; |
| 391 | LONGcxx . . $ LONG# nRealVolumecxx . . $ _MODCHANNEL#nRealVolume., nRealPancxx . . $ _MODCHANNEL#nRealPan.; |
| 392 | LONGcxx . . $ LONG# nVolumecxx . . $ _MODCHANNEL#nVolume., nPancxx . . $ _MODCHANNEL#nPan., nFadeOutVolcxx . . $ _MODCHANNEL#nFadeOutVol.; |
| 393 | LONGcxx . . $ LONG# nPeriodcxx . . $ _MODCHANNEL#nPeriod., nC4Speedcxx . . $ _MODCHANNEL#nC4Speed., nPortamentoDestcxx . . $ _MODCHANNEL#nPortamentoDest.; |
| 394 | INSTRUMENTHEADERcxx . . $ INSTRUMENTHEADER# *pHeadercxx . . $ _MODCHANNEL#pHeader.; |
| 395 | MODINSTRUMENTcxx . . $ MODINSTRUMENT# *pInstrumentcxx . . $ _MODCHANNEL#pInstrument.; |
| 396 | DWORDcxx . . $ DWORD# nVolEnvPositioncxx . . $ _MODCHANNEL#nVolEnvPosition., nPanEnvPositioncxx . . $ _MODCHANNEL#nPanEnvPosition., nPitchEnvPositioncxx . . $ _MODCHANNEL#nPitchEnvPosition.; |
| 397 | DWORDcxx . . $ DWORD# nMasterChncxx . . $ _MODCHANNEL#nMasterChn., nVUMetercxx . . $ _MODCHANNEL#nVUMeter.; |
| 398 | LONGcxx . . $ LONG# nGlobalVolcxx . . $ _MODCHANNEL#nGlobalVol., nInsVolcxx . . $ _MODCHANNEL#nInsVol.; |
| 399 | LONGcxx . . $ LONG# nFineTunecxx . . $ _MODCHANNEL#nFineTune., nTransposecxx . . $ _MODCHANNEL#nTranspose.; |
| 400 | LONGcxx . . $ LONG# nPortamentoSlidecxx . . $ _MODCHANNEL#nPortamentoSlide., nAutoVibDepthcxx . . $ _MODCHANNEL#nAutoVibDepth.; |
| 401 | UINTcxx . . $ UINT# nAutoVibPoscxx . . $ _MODCHANNEL#nAutoVibPos., nVibratoPoscxx . . $ _MODCHANNEL#nVibratoPos., nTremoloPoscxx . . $ _MODCHANNEL#nTremoloPos., nPanbrelloPoscxx . . $ _MODCHANNEL#nPanbrelloPos.; |
| 402 | // 16-bit members |
| 403 | signed short nVolSwingcxx . . $ _MODCHANNEL#nVolSwing., nPanSwingcxx . . $ _MODCHANNEL#nPanSwing.; |
| 404 | // 8-bit members |
| 405 | BYTEcxx . . $ BYTE# nNotecxx . . $ _MODCHANNEL#nNote., nNNAcxx . . $ _MODCHANNEL#nNNA.; |
| 406 | BYTEcxx . . $ BYTE# nNewNotecxx . . $ _MODCHANNEL#nNewNote., nNewInscxx . . $ _MODCHANNEL#nNewIns., nCommandcxx . . $ _MODCHANNEL#nCommand., nArpeggiocxx . . $ _MODCHANNEL#nArpeggio.; |
| 407 | BYTEcxx . . $ BYTE# nOldVolumeSlidecxx . . $ _MODCHANNEL#nOldVolumeSlide., nOldFineVolUpDowncxx . . $ _MODCHANNEL#nOldFineVolUpDown.; |
| 408 | BYTEcxx . . $ BYTE# nOldPortaUpDowncxx . . $ _MODCHANNEL#nOldPortaUpDown., nOldFinePortaUpDowncxx . . $ _MODCHANNEL#nOldFinePortaUpDown.; |
| 409 | BYTEcxx . . $ BYTE# nOldPanSlidecxx . . $ _MODCHANNEL#nOldPanSlide., nOldChnVolSlidecxx . . $ _MODCHANNEL#nOldChnVolSlide.; |
| 410 | BYTEcxx . . $ BYTE# nVibratoTypecxx . . $ _MODCHANNEL#nVibratoType., nVibratoSpeedcxx . . $ _MODCHANNEL#nVibratoSpeed., nVibratoDepthcxx . . $ _MODCHANNEL#nVibratoDepth.; |
| 411 | BYTEcxx . . $ BYTE# nTremoloTypecxx . . $ _MODCHANNEL#nTremoloType., nTremoloSpeedcxx . . $ _MODCHANNEL#nTremoloSpeed., nTremoloDepthcxx . . $ _MODCHANNEL#nTremoloDepth.; |
| 412 | BYTEcxx . . $ BYTE# nPanbrelloTypecxx . . $ _MODCHANNEL#nPanbrelloType., nPanbrelloSpeedcxx . . $ _MODCHANNEL#nPanbrelloSpeed., nPanbrelloDepthcxx . . $ _MODCHANNEL#nPanbrelloDepth.; |
| 413 | BYTEcxx . . $ BYTE# nOldCmdExcxx . . $ _MODCHANNEL#nOldCmdEx., nOldVolParamcxx . . $ _MODCHANNEL#nOldVolParam., nOldTempocxx . . $ _MODCHANNEL#nOldTempo.; |
| 414 | BYTEcxx . . $ BYTE# nOldOffsetcxx . . $ _MODCHANNEL#nOldOffset., nOldHiOffsetcxx . . $ _MODCHANNEL#nOldHiOffset.; |
| 415 | BYTEcxx . . $ BYTE# nCutOffcxx . . $ _MODCHANNEL#nCutOff., nResonancecxx . . $ _MODCHANNEL#nResonance.; |
| 416 | BYTEcxx . . $ BYTE# nRetrigCountcxx . . $ _MODCHANNEL#nRetrigCount., nRetrigParamcxx . . $ _MODCHANNEL#nRetrigParam.; |
| 417 | BYTEcxx . . $ BYTE# nTremorCountcxx . . $ _MODCHANNEL#nTremorCount., nTremorParamcxx . . $ _MODCHANNEL#nTremorParam.; |
| 418 | BYTEcxx . . $ BYTE# nPatternLoopcxx . . $ _MODCHANNEL#nPatternLoop., nPatternLoopCountcxx . . $ _MODCHANNEL#nPatternLoopCount.; |
| 419 | BYTEcxx . . $ BYTE# nRowNotecxx . . $ _MODCHANNEL#nRowNote., nRowInstrcxx . . $ _MODCHANNEL#nRowInstr.; |
| 420 | BYTEcxx . . $ BYTE# nRowVolCmdcxx . . $ _MODCHANNEL#nRowVolCmd., nRowVolumecxx . . $ _MODCHANNEL#nRowVolume.; |
| 421 | BYTEcxx . . $ BYTE# nRowCommandcxx . . $ _MODCHANNEL#nRowCommand., nRowParamcxx . . $ _MODCHANNEL#nRowParam.; |
| 422 | BYTEcxx . . $ BYTE# nLeftVUcxx . . $ _MODCHANNEL#nLeftVU., nRightVUcxx . . $ _MODCHANNEL#nRightVU.; |
| 423 | BYTEcxx . . $ BYTE# nActiveMacrocxx . . $ _MODCHANNEL#nActiveMacro., nPaddingcxx . . $ _MODCHANNEL#nPadding.; |
| 424 | } MODCHANNELcxx . . $ MODCHANNEL#; |
| 425 | |
| 426 | |
| 427 | typedef struct _MODCHANNELSETTINGScxx . . $ _MODCHANNELSETTINGS# |
| 428 | { |
| 429 | UINTcxx . . $ UINT# nPancxx . . $ _MODCHANNELSETTINGS#nPan.; |
| 430 | UINTcxx . . $ UINT# nVolumecxx . . $ _MODCHANNELSETTINGS#nVolume.; |
| 431 | DWORDcxx . . $ DWORD# dwFlagscxx . . $ _MODCHANNELSETTINGS#dwFlags.; |
| 432 | UINTcxx . . $ UINT# nMixPlugincxx . . $ _MODCHANNELSETTINGS#nMixPlugin.; |
| 433 | char szNamecxx . . $ _MODCHANNELSETTINGS#szName.[MAX_CHANNELNAMEcxx . . $ `ext/psmplug/sndfile.h:33:9`!]; // changed from CHAR |
| 434 | } MODCHANNELSETTINGScxx . . $ MODCHANNELSETTINGS#; |
| 435 | |
| 436 | |
| 437 | typedef struct _MODCOMMANDcxx . . $ _MODCOMMAND# |
| 438 | { |
| 439 | BYTEcxx . . $ BYTE# notecxx . . $ _MODCOMMAND#note.; |
| 440 | BYTEcxx . . $ BYTE# instrcxx . . $ _MODCOMMAND#instr.; |
| 441 | BYTEcxx . . $ BYTE# volcmdcxx . . $ _MODCOMMAND#volcmd.; |
| 442 | BYTEcxx . . $ BYTE# commandcxx . . $ _MODCOMMAND#command.; |
| 443 | BYTEcxx . . $ BYTE# volcxx . . $ _MODCOMMAND#vol.; |
| 444 | BYTEcxx . . $ BYTE# paramcxx . . $ _MODCOMMAND#param.; |
| 445 | } MODCOMMANDcxx . . $ MODCOMMAND#, *LPMODCOMMANDcxx . . $ LPMODCOMMAND#; |
| 446 | |
| 447 | //////////////////////////////////////////////////////////////////// |
| 448 | // Mix Plugins |
| 449 | #define MIXPLUG_MIXREADYcxx . . $ `ext/psmplug/sndfile.h:449:9`! 0x01 // Set when cleared |
| 450 | |
| 451 | class IMixPlugincxx . . $ IMixPlugin# |
| 452 | { |
| 453 | public: |
| 454 | virtual ~cxx . . $ IMixPlugin#`~IMixPlugin`(49f6e7a06ebc5aa8).IMixPlugincxx . . $ IMixPlugin#() {}; |
| 455 | virtual int AddRefcxx . . $ IMixPlugin#AddRef(b126dc7c1de90089).() = 0; |
| 456 | virtual int Releasecxx . . $ IMixPlugin#Release(b126dc7c1de90089).() = 0; |
| 457 | virtual void SaveAllParameterscxx . . $ IMixPlugin#SaveAllParameters(49f6e7a06ebc5aa8).() = 0; |
| 458 | virtual void RestoreAllParameterscxx . . $ IMixPlugin#RestoreAllParameters(49f6e7a06ebc5aa8).() = 0; |
| 459 | virtual void Processcxx . . $ IMixPlugin#Process(fedb88bdfadc7402).(float *pOutL, float *pOutR, unsigned long nSamples) = 0; |
| 460 | virtual void Initcxx . . $ IMixPlugin#Init(f9942d3529bc31bc).(unsigned long nFreq, int bReset) = 0; |
| 461 | virtual void MidiSendcxx . . $ IMixPlugin#MidiSend(cb2f890c2fdad230).(DWORDcxx . . $ DWORD# dwMidiCode) = 0; |
| 462 | virtual void MidiCommandcxx . . $ IMixPlugin#MidiCommand(eda338842932bf2b).(UINTcxx . . $ UINT# nMidiCh, UINTcxx . . $ UINT# nMidiProg, UINTcxx . . $ UINT# note, UINTcxx . . $ UINT# vol) = 0; |
| 463 | }; |
| 464 | |
| 465 | |
| 466 | #define MIXPLUG_INPUTF_MASTEREFFECTcxx . . $ `ext/psmplug/sndfile.h:466:9`! 0x01 // Apply to master mix |
| 467 | #define MIXPLUG_INPUTF_BYPASScxx . . $ `ext/psmplug/sndfile.h:467:9`! 0x02 // Bypass effect |
| 468 | #define MIXPLUG_INPUTF_WETMIXcxx . . $ `ext/psmplug/sndfile.h:468:9`! 0x04 // Wet Mix (dry added) |
| 469 | |
| 470 | typedef struct _SNDMIXPLUGINSTATEcxx . . $ _SNDMIXPLUGINSTATE# |
| 471 | { |
| 472 | DWORDcxx . . $ DWORD# dwFlagscxx . . $ _SNDMIXPLUGINSTATE#dwFlags.; // MIXPLUG_XXXX |
| 473 | LONGcxx . . $ LONG# nVolDecayLcxx . . $ _SNDMIXPLUGINSTATE#nVolDecayL., nVolDecayRcxx . . $ _SNDMIXPLUGINSTATE#nVolDecayR.; // Buffer click removal |
| 474 | int *pMixBuffercxx . . $ _SNDMIXPLUGINSTATE#pMixBuffer.; // Stereo effect send buffer |
| 475 | float *pOutBufferLcxx . . $ _SNDMIXPLUGINSTATE#pOutBufferL.; // Temp storage for int -> float conversion |
| 476 | float *pOutBufferRcxx . . $ _SNDMIXPLUGINSTATE#pOutBufferR.; |
| 477 | } SNDMIXPLUGINSTATEcxx . . $ SNDMIXPLUGINSTATE#, *PSNDMIXPLUGINSTATEcxx . . $ PSNDMIXPLUGINSTATE#; |
| 478 | |
| 479 | typedef struct _SNDMIXPLUGININFOcxx . . $ _SNDMIXPLUGININFO# |
| 480 | { |
| 481 | DWORDcxx . . $ DWORD# dwPluginId1cxx . . $ _SNDMIXPLUGININFO#dwPluginId1.; |
| 482 | DWORDcxx . . $ DWORD# dwPluginId2cxx . . $ _SNDMIXPLUGININFO#dwPluginId2.; |
| 483 | DWORDcxx . . $ DWORD# dwInputRoutingcxx . . $ _SNDMIXPLUGININFO#dwInputRouting.; // MIXPLUG_INPUTF_XXXX |
| 484 | DWORDcxx . . $ DWORD# dwOutputRoutingcxx . . $ _SNDMIXPLUGININFO#dwOutputRouting.; // 0=mix 0x80+=fx |
| 485 | DWORDcxx . . $ DWORD# dwReservedcxx . . $ _SNDMIXPLUGININFO#dwReserved.[4]; // Reserved for routing info |
| 486 | CHARcxx . . $ CHAR# szNamecxx . . $ _SNDMIXPLUGININFO#szName.[32]; |
| 487 | CHARcxx . . $ CHAR# szLibraryNamecxx . . $ _SNDMIXPLUGININFO#szLibraryName.[64]; // original DLL name |
| 488 | } SNDMIXPLUGININFOcxx . . $ SNDMIXPLUGININFO#, *PSNDMIXPLUGININFOcxx . . $ PSNDMIXPLUGININFO#; // Size should be 128 |
| 489 | |
| 490 | typedef struct _SNDMIXPLUGINcxx . . $ _SNDMIXPLUGIN# |
| 491 | { |
| 492 | IMixPlugincxx . . $ IMixPlugin# *pMixPlugincxx . . $ _SNDMIXPLUGIN#pMixPlugin.; |
| 493 | PSNDMIXPLUGINSTATEcxx . . $ PSNDMIXPLUGINSTATE# pMixStatecxx . . $ _SNDMIXPLUGIN#pMixState.; |
| 494 | ULONGcxx . . $ ULONG# nPluginDataSizecxx . . $ _SNDMIXPLUGIN#nPluginDataSize.; |
| 495 | PVOIDcxx . . $ PVOID# pPluginDatacxx . . $ _SNDMIXPLUGIN#pPluginData.; |
| 496 | SNDMIXPLUGININFOcxx . . $ SNDMIXPLUGININFO# Infocxx . . $ _SNDMIXPLUGIN#Info.; |
| 497 | } SNDMIXPLUGINcxx . . $ SNDMIXPLUGIN#, *PSNDMIXPLUGINcxx . . $ PSNDMIXPLUGIN#; |
| 498 | |
| 499 | typedef BOOLcxx . . $ BOOL# (*PMIXPLUGINCREATEPROCcxx . . $ PMIXPLUGINCREATEPROC#)(PSNDMIXPLUGINcxx . . $ PSNDMIXPLUGIN#); |
| 500 | |
| 501 | //////////////////////////////////////////////////////////////////// |
| 502 | |
| 503 | enumcxx . . $ $anonymous_type_798a394f5240e7a0_2# { |
| 504 | MIDIOUT_STARTcxx . . $ MIDIOUT_START.=0, |
| 505 | MIDIOUT_STOPcxx . . $ MIDIOUT_STOP., |
| 506 | MIDIOUT_TICKcxx . . $ MIDIOUT_TICK., |
| 507 | MIDIOUT_NOTEONcxx . . $ MIDIOUT_NOTEON., |
| 508 | MIDIOUT_NOTEOFFcxx . . $ MIDIOUT_NOTEOFF., |
| 509 | MIDIOUT_VOLUMEcxx . . $ MIDIOUT_VOLUME., |
| 510 | MIDIOUT_PANcxx . . $ MIDIOUT_PAN., |
| 511 | MIDIOUT_BANKSELcxx . . $ MIDIOUT_BANKSEL., |
| 512 | MIDIOUT_PROGRAMcxx . . $ MIDIOUT_PROGRAM., |
| 513 | }; |
| 514 | |
| 515 | |
| 516 | typedef struct MODMIDICFGcxx . . $ MODMIDICFG# |
| 517 | { |
| 518 | char szMidiGlbcxx . . $ MODMIDICFG#szMidiGlb.[9*32]; // changed from CHAR |
| 519 | char szMidiSFXExtcxx . . $ MODMIDICFG#szMidiSFXExt.[16*32]; // changed from CHAR |
| 520 | char szMidiZXXExtcxx . . $ MODMIDICFG#szMidiZXXExt.[128*32]; // changed from CHAR |
| 521 | } MODMIDICFGcxx . . $ MODMIDICFG#, *LPMODMIDICFGcxx . . $ LPMODMIDICFG#; |
| 522 | |
| 523 | #define NOTE_MAXcxx . . $ `ext/psmplug/sndfile.h:523:9`! 120 //Defines maximum notevalue as well as maximum number of notes. |
| 524 | |
| 525 | typedef VOIDcxx . . $ VOID# (* LPSNDMIXHOOKPROCcxx . . $ LPSNDMIXHOOKPROC#)(int *, unsigned long, unsigned long); // buffer, samples, channels |
| 526 | |
| 527 | |
| 528 | |
| 529 | //============== |
| 530 | class CSoundFilecxx . . $ CSoundFile# |
| 531 | //============== |
| 532 | { |
| 533 | public: // Static Members |
| 534 | static UINTcxx . . $ UINT# m_nXBassDepthcxx . . $ CSoundFile#m_nXBassDepth.; |
| 535 | static UINTcxx . . $ UINT# m_nXBassRangecxx . . $ CSoundFile#m_nXBassRange.; |
| 536 | static UINTcxx . . $ UINT# m_nReverbDepthcxx . . $ CSoundFile#m_nReverbDepth.; |
| 537 | static UINTcxx . . $ UINT# m_nReverbDelaycxx . . $ CSoundFile#m_nReverbDelay.; |
| 538 | static UINTcxx . . $ UINT# gnReverbTypecxx . . $ CSoundFile#gnReverbType.; |
| 539 | static UINTcxx . . $ UINT# m_nProLogicDepthcxx . . $ CSoundFile#m_nProLogicDepth.; |
| 540 | static UINTcxx . . $ UINT# m_nProLogicDelaycxx . . $ CSoundFile#m_nProLogicDelay.; |
| 541 | static UINTcxx . . $ UINT# m_nStereoSeparationcxx . . $ CSoundFile#m_nStereoSeparation.; |
| 542 | static UINTcxx . . $ UINT# m_nMaxMixChannelscxx . . $ CSoundFile#m_nMaxMixChannels.; |
| 543 | static LONGcxx . . $ LONG# m_nStreamVolumecxx . . $ CSoundFile#m_nStreamVolume.; |
| 544 | static DWORDcxx . . $ DWORD# gdwSysInfocxx . . $ CSoundFile#gdwSysInfo.; |
| 545 | static DWORDcxx . . $ DWORD# gdwSoundSetupcxx . . $ CSoundFile#gdwSoundSetup.; |
| 546 | static DWORDcxx . . $ DWORD# gdwMixingFreqcxx . . $ CSoundFile#gdwMixingFreq.; |
| 547 | static DWORDcxx . . $ DWORD# gnBitsPerSamplecxx . . $ CSoundFile#gnBitsPerSample.; |
| 548 | static DWORDcxx . . $ DWORD# gnChannelscxx . . $ CSoundFile#gnChannels.; |
| 549 | static UINTcxx . . $ UINT# gnAGCcxx . . $ CSoundFile#gnAGC.; |
| 550 | static UINTcxx . . $ UINT# gnVolumeRampSamplescxx . . $ CSoundFile#gnVolumeRampSamples.; |
| 551 | static UINTcxx . . $ UINT# gnVUMetercxx . . $ CSoundFile#gnVUMeter.; |
| 552 | static UINTcxx . . $ UINT# gnCPUUsagecxx . . $ CSoundFile#gnCPUUsage.; |
| 553 | static LPSNDMIXHOOKPROCcxx . . $ LPSNDMIXHOOKPROC# gpSndMixHookcxx . . $ CSoundFile#gpSndMixHook.; |
| 554 | static PMIXPLUGINCREATEPROCcxx . . $ PMIXPLUGINCREATEPROC# gpMixPluginCreateProccxx . . $ CSoundFile#gpMixPluginCreateProc.; |
| 555 | |
| 556 | public: // for Editing |
| 557 | MODCHANNELcxx . . $ MODCHANNEL# Chncxx . . $ CSoundFile#Chn.[MAX_CHANNELScxx . . $ `ext/psmplug/sndfile.h:27:9`!]; // Channels |
| 558 | UINTcxx . . $ UINT# ChnMixcxx . . $ CSoundFile#ChnMix.[MAX_CHANNELScxx . . $ `ext/psmplug/sndfile.h:27:9`!]; // Channels to be mixed |
| 559 | MODINSTRUMENTcxx . . $ MODINSTRUMENT# Inscxx . . $ CSoundFile#Ins.[MAX_SAMPLEScxx . . $ `ext/psmplug/sndfile.h:25:9`!]; // Instruments |
| 560 | INSTRUMENTHEADERcxx . . $ INSTRUMENTHEADER# *Headerscxx . . $ CSoundFile#Headers.[MAX_INSTRUMENTScxx . . $ `ext/psmplug/sndfile.h:26:9`!]; // Instrument Headers |
| 561 | MODCHANNELSETTINGScxx . . $ MODCHANNELSETTINGS# ChnSettingscxx . . $ CSoundFile#ChnSettings.[MAX_BASECHANNELScxx . . $ `ext/psmplug/sndfile.h:28:9`!]; // Channels settings |
| 562 | MODCOMMANDcxx . . $ MODCOMMAND# *Patternscxx . . $ CSoundFile#Patterns.[MAX_PATTERNScxx . . $ `ext/psmplug/sndfile.h:24:9`!]; // Patterns |
| 563 | WORDcxx . . $ WORD# PatternSizecxx . . $ CSoundFile#PatternSize.[MAX_PATTERNScxx . . $ `ext/psmplug/sndfile.h:24:9`!]; // Patterns Lengths |
| 564 | BYTEcxx . . $ BYTE# Ordercxx . . $ CSoundFile#Order.[MAX_ORDERScxx . . $ `ext/psmplug/sndfile.h:23:9`!]; // Pattern Orders |
| 565 | MODMIDICFGcxx . . $ MODMIDICFG# m_MidiCfgcxx . . $ CSoundFile#m_MidiCfg.; // Midi macro config table |
| 566 | SNDMIXPLUGINcxx . . $ SNDMIXPLUGIN# m_MixPluginscxx . . $ CSoundFile#m_MixPlugins.[MAX_MIXPLUGINScxx . . $ `ext/psmplug/sndfile.h:36:9`!]; // Mix plugins |
| 567 | UINTcxx . . $ UINT# m_nDefaultSpeedcxx . . $ CSoundFile#m_nDefaultSpeed., m_nDefaultTempocxx . . $ CSoundFile#m_nDefaultTempo., m_nDefaultGlobalVolumecxx . . $ CSoundFile#m_nDefaultGlobalVolume.; |
| 568 | DWORDcxx . . $ DWORD# m_dwSongFlagscxx . . $ CSoundFile#m_dwSongFlags.; // Song flags SONG_XXXX |
| 569 | UINTcxx . . $ UINT# m_nChannelscxx . . $ CSoundFile#m_nChannels., m_nMixChannelscxx . . $ CSoundFile#m_nMixChannels., m_nMixStatcxx . . $ CSoundFile#m_nMixStat., m_nBufferCountcxx . . $ CSoundFile#m_nBufferCount.; |
| 570 | UINTcxx . . $ UINT# m_nTypecxx . . $ CSoundFile#m_nType., m_nSamplescxx . . $ CSoundFile#m_nSamples., m_nInstrumentscxx . . $ CSoundFile#m_nInstruments.; |
| 571 | UINTcxx . . $ UINT# m_nTickCountcxx . . $ CSoundFile#m_nTickCount., m_nTotalCountcxx . . $ CSoundFile#m_nTotalCount., m_nPatternDelaycxx . . $ CSoundFile#m_nPatternDelay., m_nFrameDelaycxx . . $ CSoundFile#m_nFrameDelay.; |
| 572 | UINTcxx . . $ UINT# m_nMusicSpeedcxx . . $ CSoundFile#m_nMusicSpeed., m_nMusicTempocxx . . $ CSoundFile#m_nMusicTempo.; |
| 573 | UINTcxx . . $ UINT# m_nNextRowcxx . . $ CSoundFile#m_nNextRow., m_nRowcxx . . $ CSoundFile#m_nRow., m_nNextStartRowcxx . . $ CSoundFile#m_nNextStartRow.; |
| 574 | UINTcxx . . $ UINT# m_nPatterncxx . . $ CSoundFile#m_nPattern.,m_nCurrentPatterncxx . . $ CSoundFile#m_nCurrentPattern.,m_nNextPatterncxx . . $ CSoundFile#m_nNextPattern.,m_nRestartPoscxx . . $ CSoundFile#m_nRestartPos.; |
| 575 | UINTcxx . . $ UINT# m_nMasterVolumecxx . . $ CSoundFile#m_nMasterVolume., m_nGlobalVolumecxx . . $ CSoundFile#m_nGlobalVolume., m_nSongPreAmpcxx . . $ CSoundFile#m_nSongPreAmp.; |
| 576 | UINTcxx . . $ UINT# m_nFreqFactorcxx . . $ CSoundFile#m_nFreqFactor., m_nTempoFactorcxx . . $ CSoundFile#m_nTempoFactor., m_nOldGlbVolSlidecxx . . $ CSoundFile#m_nOldGlbVolSlide.; |
| 577 | LONGcxx . . $ LONG# m_nMinPeriodcxx . . $ CSoundFile#m_nMinPeriod., m_nMaxPeriodcxx . . $ CSoundFile#m_nMaxPeriod., m_nRepeatCountcxx . . $ CSoundFile#m_nRepeatCount., m_nInitialRepeatCountcxx . . $ CSoundFile#m_nInitialRepeatCount.; |
| 578 | DWORDcxx . . $ DWORD# m_nGlobalFadeSamplescxx . . $ CSoundFile#m_nGlobalFadeSamples., m_nGlobalFadeMaxSamplescxx . . $ CSoundFile#m_nGlobalFadeMaxSamples.; |
| 579 | UINTcxx . . $ UINT# m_nMaxOrderPositioncxx . . $ CSoundFile#m_nMaxOrderPosition.; |
| 580 | UINTcxx . . $ UINT# m_nPatternNamescxx . . $ CSoundFile#m_nPatternNames.; |
| 581 | LPSTRcxx . . $ LPSTR# m_lpszSongCommentscxx . . $ CSoundFile#m_lpszSongComments., m_lpszPatternNamescxx . . $ CSoundFile#m_lpszPatternNames.; |
| 582 | char m_szNamescxx . . $ CSoundFile#m_szNames.[MAX_INSTRUMENTScxx . . $ `ext/psmplug/sndfile.h:26:9`!][32]; // changed from CHAR |
| 583 | CHARcxx . . $ CHAR# CompressionTablecxx . . $ CSoundFile#CompressionTable.[16]; |
| 584 | |
| 585 | public: |
| 586 | CSoundFilecxx . . $ CSoundFile#CSoundFile(49f6e7a06ebc5aa8).(); |
| 587 | ~cxx . . $ CSoundFile#`~CSoundFile`(49f6e7a06ebc5aa8).CSoundFilecxx . . $ CSoundFile#(); |
| 588 | |
| 589 | public: |
| 590 | BOOLcxx . . $ BOOL# Createcxx . . $ CSoundFile#Create(41ee87f0602ae969).(LPCBYTEcxx . . $ LPCBYTE# lpStream, DWORDcxx . . $ DWORD# dwMemLength=0); |
| 591 | BOOLcxx . . $ BOOL# Destroycxx . . $ CSoundFile#Destroy(c9857a73d68e59ba).(); |
| 592 | UINTcxx . . $ UINT# GetTypecxx . . $ CSoundFile#GetType(ddd8539a2fcdd4ce).() const { return m_nTypecxx . . $ CSoundFile#m_nType.; } |
| 593 | UINTcxx . . $ UINT# GetNumChannelscxx . . $ CSoundFile#GetNumChannels(ddd8539a2fcdd4ce).() const; |
| 594 | UINTcxx . . $ UINT# GetLogicalChannelscxx . . $ CSoundFile#GetLogicalChannels(ddd8539a2fcdd4ce).() const { return m_nChannelscxx . . $ CSoundFile#m_nChannels.; } |
| 595 | BOOLcxx . . $ BOOL# SetMasterVolumecxx . . $ CSoundFile#SetMasterVolume(f97cc7cf123a0aff).(UINTcxx . . $ UINT# nVol, BOOLcxx . . $ BOOL# bAdjustAGC=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!); |
| 596 | UINTcxx . . $ UINT# GetMasterVolumecxx . . $ CSoundFile#GetMasterVolume(ddd8539a2fcdd4ce).() const { return m_nMasterVolumecxx . . $ CSoundFile#m_nMasterVolume.; } |
| 597 | BOOLcxx . . $ BOOL# SetTempoFactorcxx . . $ CSoundFile#SetTempoFactor(dfa6e707f7696010).(UINTcxx . . $ UINT# nTemp); |
| 598 | UINTcxx . . $ UINT# GetTempoFactorcxx . . $ CSoundFile#GetTempoFactor(ddd8539a2fcdd4ce).() const { return m_nTempoFactorcxx . . $ CSoundFile#m_nTempoFactor.; } |
| 599 | UINTcxx . . $ UINT# GetNumPatternscxx . . $ CSoundFile#GetNumPatterns(ddd8539a2fcdd4ce).() const; |
| 600 | UINTcxx . . $ UINT# GetNumInstrumentscxx . . $ CSoundFile#GetNumInstruments(ddd8539a2fcdd4ce).() const; |
| 601 | UINTcxx . . $ UINT# GetNumSamplescxx . . $ CSoundFile#GetNumSamples(ddd8539a2fcdd4ce).() const { return m_nSamplescxx . . $ CSoundFile#m_nSamples.; } |
| 602 | UINTcxx . . $ UINT# GetCurrentPoscxx . . $ CSoundFile#GetCurrentPos(ddd8539a2fcdd4ce).() const; |
| 603 | UINTcxx . . $ UINT# GetCurrentPatterncxx . . $ CSoundFile#GetCurrentPattern(ddd8539a2fcdd4ce).() const { return m_nPatterncxx . . $ CSoundFile#m_nPattern.; } |
| 604 | UINTcxx . . $ UINT# GetCurrentOrdercxx . . $ CSoundFile#GetCurrentOrder(ddd8539a2fcdd4ce).() const { return m_nCurrentPatterncxx . . $ CSoundFile#m_nCurrentPattern.; } |
| 605 | UINTcxx . . $ UINT# GetSongCommentscxx . . $ CSoundFile#GetSongComments(968bca23ac7df750).(LPSTRcxx . . $ LPSTR# s, UINTcxx . . $ UINT# cbsize, UINTcxx . . $ UINT# linesize=32); |
| 606 | UINTcxx . . $ UINT# GetRawSongCommentscxx . . $ CSoundFile#GetRawSongComments(968bca23ac7df750).(LPSTRcxx . . $ LPSTR# s, UINTcxx . . $ UINT# cbsize, UINTcxx . . $ UINT# linesize=32); |
| 607 | UINTcxx . . $ UINT# GetMaxPositioncxx . . $ CSoundFile#GetMaxPosition(ddd8539a2fcdd4ce).() const; |
| 608 | void SetCurrentPoscxx . . $ CSoundFile#SetCurrentPos(cb2f890c2fdad230).(UINTcxx . . $ UINT# nPos); |
| 609 | void SetCurrentOrdercxx . . $ CSoundFile#SetCurrentOrder(cb2f890c2fdad230).(UINTcxx . . $ UINT# nOrder); |
| 610 | void GetTitlecxx . . $ CSoundFile#GetTitle(f8c1bc12e132d234).(LPSTRcxx . . $ LPSTR# s) const { lstrcpynAcxx . . $ `ext/psmplug/stdafx.h:76:9`!(s,m_szNamescxx . . $ CSoundFile#m_szNames.[0],32); } |
| 611 | LPCSTRcxx . . $ LPCSTR# GetTitlecxx . . $ CSoundFile#GetTitle(a9f41ea0e82d88cf).() const { return m_szNamescxx . . $ CSoundFile#m_szNames.[0]; } |
| 612 | UINTcxx . . $ UINT# GetSampleNamecxx . . $ CSoundFile#GetSampleName(bd66cc884609c19d).(UINTcxx . . $ UINT# nSample,LPSTRcxx . . $ LPSTR# s=NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!) const; |
| 613 | UINTcxx . . $ UINT# GetInstrumentNamecxx . . $ CSoundFile#GetInstrumentName(bd66cc884609c19d).(UINTcxx . . $ UINT# nInstr,LPSTRcxx . . $ LPSTR# s=NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!) const; |
| 614 | UINTcxx . . $ UINT# GetMusicSpeedcxx . . $ CSoundFile#GetMusicSpeed(ddd8539a2fcdd4ce).() const { return m_nMusicSpeedcxx . . $ CSoundFile#m_nMusicSpeed.; } |
| 615 | UINTcxx . . $ UINT# GetMusicTempocxx . . $ CSoundFile#GetMusicTempo(ddd8539a2fcdd4ce).() const { return m_nMusicTempocxx . . $ CSoundFile#m_nMusicTempo.; } |
| 616 | DWORDcxx . . $ DWORD# GetLengthcxx . . $ CSoundFile#GetLength(6e809cf22334a9c1).(BOOLcxx . . $ BOOL# bAdjust, BOOLcxx . . $ BOOL# bTotal=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!); |
| 617 | DWORDcxx . . $ DWORD# GetSongTimecxx . . $ CSoundFile#GetSongTime(db52760e79bf9054).() { return GetLengthcxx . . $ CSoundFile#GetLength(6e809cf22334a9c1).(FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!, TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`!); } |
| 618 | void SetRepeatCountcxx . . $ CSoundFile#SetRepeatCount(d4f767463ce0a6b3).(int n) { m_nRepeatCountcxx . . $ CSoundFile#m_nRepeatCount. = n; m_nInitialRepeatCountcxx . . $ CSoundFile#m_nInitialRepeatCount. = n; } |
| 619 | int GetRepeatCountcxx . . $ CSoundFile#GetRepeatCount(455f465bc33b4cdf).() const { return m_nRepeatCountcxx . . $ CSoundFile#m_nRepeatCount.; } |
| 620 | BOOLcxx . . $ BOOL# IsPausedcxx . . $ CSoundFile#IsPaused(50ce9a9e25b4a850).() const { return (m_dwSongFlagscxx . . $ CSoundFile#m_dwSongFlags. & SONG_PAUSEDcxx . . $ `ext/psmplug/sndfile.h:244:9`!) ? TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`! : FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!; } |
| 621 | void LoopPatterncxx . . $ CSoundFile#LoopPattern(3e454b8ccf442868).(int nPat, int nRow=0); |
| 622 | void CheckCPUUsagecxx . . $ CSoundFile#CheckCPUUsage(cb2f890c2fdad230).(UINTcxx . . $ UINT# nCPU); |
| 623 | BOOLcxx . . $ BOOL# SetPatternNamecxx . . $ CSoundFile#SetPatternName(33974edd1b6ef6cc).(UINTcxx . . $ UINT# nPat, LPCSTRcxx . . $ LPCSTR# lpszName); |
| 624 | BOOLcxx . . $ BOOL# GetPatternNamecxx . . $ CSoundFile#GetPatternName(a182617911d80fb2).(UINTcxx . . $ UINT# nPat, LPSTRcxx . . $ LPSTR# lpszName, UINTcxx . . $ UINT# cbSize=MAX_PATTERNNAMEcxx . . $ `ext/psmplug/sndfile.h:32:9`!) const; |
| 625 | // Module Loaders |
| 626 | BOOLcxx . . $ BOOL# ReadPSMcxx . . $ CSoundFile#ReadPSM(41ee87f0602ae969).(LPCBYTEcxx . . $ LPCBYTE# lpStream, DWORDcxx . . $ DWORD# dwMemLength); |
| 627 | // MOD Convert function |
| 628 | UINTcxx . . $ UINT# GetBestSaveFormatcxx . . $ CSoundFile#GetBestSaveFormat(ddd8539a2fcdd4ce).() const; |
| 629 | UINTcxx . . $ UINT# GetSaveFormatscxx . . $ CSoundFile#GetSaveFormats(ddd8539a2fcdd4ce).() const; |
| 630 | void ConvertModCommandcxx . . $ CSoundFile#ConvertModCommand(de59e094eb6a0e).(MODCOMMANDcxx . . $ MODCOMMAND# *) const; |
| 631 | void S3MConvertcxx . . $ CSoundFile#S3MConvert(972c592e090617d).(MODCOMMANDcxx . . $ MODCOMMAND# *m, BOOLcxx . . $ BOOL# bIT) const; |
| 632 | void S3MSaveConvertcxx . . $ CSoundFile#S3MSaveConvert(eba9cd480005b4ab).(UINTcxx . . $ UINT# *pcmd, UINTcxx . . $ UINT# *pprm, BOOLcxx . . $ BOOL# bIT) const; |
| 633 | WORDcxx . . $ WORD# ModSaveCommandcxx . . $ CSoundFile#ModSaveCommand(b471b7a4cdc709d).(const MODCOMMANDcxx . . $ MODCOMMAND# *m, BOOLcxx . . $ BOOL# bXM) const; |
| 634 | |
| 635 | public: |
| 636 | // Real-time sound functions |
| 637 | VOIDcxx . . $ VOID# ResetChannelscxx . . $ CSoundFile#ResetChannels(49f6e7a06ebc5aa8).(); |
| 638 | |
| 639 | UINTcxx . . $ UINT# Readcxx . . $ CSoundFile#Read(35feec062aeef876).(LPVOIDcxx . . $ LPVOID# lpBuffer, UINTcxx . . $ UINT# cbBuffer); |
| 640 | UINTcxx . . $ UINT# CreateStereoMixcxx . . $ CSoundFile#CreateStereoMix(46cc46841198e427).(int count); |
| 641 | BOOLcxx . . $ BOOL# FadeSongcxx . . $ CSoundFile#FadeSong(dfa6e707f7696010).(UINTcxx . . $ UINT# msec); |
| 642 | BOOLcxx . . $ BOOL# GlobalFadeSongcxx . . $ CSoundFile#GlobalFadeSong(dfa6e707f7696010).(UINTcxx . . $ UINT# msec); |
| 643 | UINTcxx . . $ UINT# GetTotalTickCountcxx . . $ CSoundFile#GetTotalTickCount(ddd8539a2fcdd4ce).() const { return m_nTotalCountcxx . . $ CSoundFile#m_nTotalCount.; } |
| 644 | VOIDcxx . . $ VOID# ResetTotalTickCountcxx . . $ CSoundFile#ResetTotalTickCount(49f6e7a06ebc5aa8).() { m_nTotalCountcxx . . $ CSoundFile#m_nTotalCount. = 0; } |
| 645 | |
| 646 | public: |
| 647 | // Mixer Config |
| 648 | static BOOLcxx . . $ BOOL# InitPlayercxx . . $ CSoundFile#InitPlayer(efaadfb7dc14930a).(BOOLcxx . . $ BOOL# bReset=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!); |
| 649 | static BOOLcxx . . $ BOOL# SetMixConfigcxx . . $ CSoundFile#SetMixConfig(8e1b545ea3aecce3).(UINTcxx . . $ UINT# nStereoSeparation, UINTcxx . . $ UINT# nMaxMixChannels); |
| 650 | static BOOLcxx . . $ BOOL# SetWaveConfigcxx . . $ CSoundFile#SetWaveConfig(ba40b00a3e4c32e8).(UINTcxx . . $ UINT# nRate,UINTcxx . . $ UINT# nBits,UINTcxx . . $ UINT# nChannels,BOOLcxx . . $ BOOL# bMMX=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!); |
| 651 | static BOOLcxx . . $ BOOL# SetResamplingModecxx . . $ CSoundFile#SetResamplingMode(dfa6e707f7696010).(UINTcxx . . $ UINT# nMode); // SRCMODE_XXXX |
| 652 | static BOOLcxx . . $ BOOL# IsStereocxx . . $ CSoundFile#IsStereo(c9857a73d68e59ba).() { return (gnChannelscxx . . $ CSoundFile#gnChannels. > 1) ? TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`! : FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!; } |
| 653 | static DWORDcxx . . $ DWORD# GetSampleRatecxx . . $ CSoundFile#GetSampleRate(db52760e79bf9054).() { return gdwMixingFreqcxx . . $ CSoundFile#gdwMixingFreq.; } |
| 654 | static DWORDcxx . . $ DWORD# GetBitsPerSamplecxx . . $ CSoundFile#GetBitsPerSample(db52760e79bf9054).() { return gnBitsPerSamplecxx . . $ CSoundFile#gnBitsPerSample.; } |
| 655 | static DWORDcxx . . $ DWORD# InitSysInfocxx . . $ CSoundFile#InitSysInfo(db52760e79bf9054).(); |
| 656 | static DWORDcxx . . $ DWORD# GetSysInfocxx . . $ CSoundFile#GetSysInfo(db52760e79bf9054).() { return gdwSysInfocxx . . $ CSoundFile#gdwSysInfo.; } |
| 657 | |
| 658 | //GCCFIX -- added these functions back in! |
| 659 | static BOOLcxx . . $ BOOL# SetWaveConfigExcxx . . $ CSoundFile#SetWaveConfigEx(dde2bda68385446b).(BOOLcxx . . $ BOOL# bSurround,BOOLcxx . . $ BOOL# bNoOverSampling,BOOLcxx . . $ BOOL# bReverb,BOOLcxx . . $ BOOL# hqido,BOOLcxx . . $ BOOL# bMegaBass,BOOLcxx . . $ BOOL# bNR,BOOLcxx . . $ BOOL# bEQ); |
| 660 | // DSP Effects |
| 661 | static void InitializeDSPcxx . . $ CSoundFile#InitializeDSP(b45ddcbc8423892c).(BOOLcxx . . $ BOOL# bReset); |
| 662 | static void ProcessStereoDSPcxx . . $ CSoundFile#ProcessStereoDSP(d4f767463ce0a6b3).(int count); |
| 663 | static void ProcessMonoDSPcxx . . $ CSoundFile#ProcessMonoDSP(d4f767463ce0a6b3).(int count); |
| 664 | // [Reverb level 0(quiet)-100(loud)], [delay in ms, usually 40-200ms] |
| 665 | static BOOLcxx . . $ BOOL# SetReverbParameterscxx . . $ CSoundFile#SetReverbParameters(8e1b545ea3aecce3).(UINTcxx . . $ UINT# nDepth, UINTcxx . . $ UINT# nDelay); |
| 666 | // [XBass level 0(quiet)-100(loud)], [cutoff in Hz 10-100] |
| 667 | static BOOLcxx . . $ BOOL# SetXBassParameterscxx . . $ CSoundFile#SetXBassParameters(8e1b545ea3aecce3).(UINTcxx . . $ UINT# nDepth, UINTcxx . . $ UINT# nRange); |
| 668 | // [Surround level 0(quiet)-100(heavy)] [delay in ms, usually 5-40ms] |
| 669 | static BOOLcxx . . $ BOOL# SetSurroundParameterscxx . . $ CSoundFile#SetSurroundParameters(8e1b545ea3aecce3).(UINTcxx . . $ UINT# nDepth, UINTcxx . . $ UINT# nDelay); |
| 670 | public: |
| 671 | BOOLcxx . . $ BOOL# ReadNotecxx . . $ CSoundFile#ReadNote(c9857a73d68e59ba).(); |
| 672 | BOOLcxx . . $ BOOL# ProcessRowcxx . . $ CSoundFile#ProcessRow(c9857a73d68e59ba).(); |
| 673 | BOOLcxx . . $ BOOL# ProcessEffectscxx . . $ CSoundFile#ProcessEffects(c9857a73d68e59ba).(); |
| 674 | UINTcxx . . $ UINT# GetNNAChannelcxx . . $ CSoundFile#GetNNAChannel(560347b7e9428769).(UINTcxx . . $ UINT# nChn) const; |
| 675 | void CheckNNAcxx . . $ CSoundFile#CheckNNA(230004c10516def5).(UINTcxx . . $ UINT# nChn, UINTcxx . . $ UINT# instr, int note, BOOLcxx . . $ BOOL# bForceCut); |
| 676 | void NoteChangecxx . . $ CSoundFile#NoteChange(67e231910744a03a).(UINTcxx . . $ UINT# nChn, int note, BOOLcxx . . $ BOOL# bPorta=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!, BOOLcxx . . $ BOOL# bResetEnv=TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`!); |
| 677 | void InstrumentChangecxx . . $ CSoundFile#InstrumentChange(9b15856708fe3196).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# instr, BOOLcxx . . $ BOOL# bPorta=FALSEcxx . . $ `ext/psmplug/stdafx.h:93:9`!,BOOLcxx . . $ BOOL# bUpdVol=TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`!,BOOLcxx . . $ BOOL# bResetEnv=TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`!); |
| 678 | // Channel Effects |
| 679 | void PortamentoUpcxx . . $ CSoundFile#PortamentoUp(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 680 | void PortamentoDowncxx . . $ CSoundFile#PortamentoDown(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 681 | void FinePortamentoUpcxx . . $ CSoundFile#FinePortamentoUp(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 682 | void FinePortamentoDowncxx . . $ CSoundFile#FinePortamentoDown(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 683 | void ExtraFinePortamentoUpcxx . . $ CSoundFile#ExtraFinePortamentoUp(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 684 | void ExtraFinePortamentoDowncxx . . $ CSoundFile#ExtraFinePortamentoDown(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 685 | void TonePortamentocxx . . $ CSoundFile#TonePortamento(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 686 | void Vibratocxx . . $ CSoundFile#Vibrato(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 687 | void FineVibratocxx . . $ CSoundFile#FineVibrato(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 688 | void VolumeSlidecxx . . $ CSoundFile#VolumeSlide(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 689 | void PanningSlidecxx . . $ CSoundFile#PanningSlide(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 690 | void ChannelVolSlidecxx . . $ CSoundFile#ChannelVolSlide(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 691 | void FineVolumeUpcxx . . $ CSoundFile#FineVolumeUp(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 692 | void FineVolumeDowncxx . . $ CSoundFile#FineVolumeDown(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 693 | void Tremolocxx . . $ CSoundFile#Tremolo(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 694 | void Panbrellocxx . . $ CSoundFile#Panbrello(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, UINTcxx . . $ UINT# param); |
| 695 | void RetrigNotecxx . . $ CSoundFile#RetrigNote(b4d55b1286ff73e8).(UINTcxx . . $ UINT# nChn, UINTcxx . . $ UINT# param); |
| 696 | void NoteCutcxx . . $ CSoundFile#NoteCut(b4d55b1286ff73e8).(UINTcxx . . $ UINT# nChn, UINTcxx . . $ UINT# nTick); |
| 697 | void KeyOffcxx . . $ CSoundFile#KeyOff(cb2f890c2fdad230).(UINTcxx . . $ UINT# nChn); |
| 698 | int PatternLoopcxx . . $ CSoundFile#PatternLoop(c737d2dc2d1a6a73).(MODCHANNELcxx . . $ MODCHANNEL# *, UINTcxx . . $ UINT# param); |
| 699 | void ExtendedMODCommandscxx . . $ CSoundFile#ExtendedMODCommands(b4d55b1286ff73e8).(UINTcxx . . $ UINT# nChn, UINTcxx . . $ UINT# param); |
| 700 | void ExtendedS3MCommandscxx . . $ CSoundFile#ExtendedS3MCommands(b4d55b1286ff73e8).(UINTcxx . . $ UINT# nChn, UINTcxx . . $ UINT# param); |
| 701 | void ExtendedChannelEffectcxx . . $ CSoundFile#ExtendedChannelEffect(5703cfed8fb1c6e9).(MODCHANNELcxx . . $ MODCHANNEL# *, UINTcxx . . $ UINT# param); |
| 702 | void ProcessMidiMacrocxx . . $ CSoundFile#ProcessMidiMacro(1e07a8de9afa155a).(UINTcxx . . $ UINT# nChn, LPCSTRcxx . . $ LPCSTR# pszMidiMacro, UINTcxx . . $ UINT# param=0); |
| 703 | void SetupChannelFiltercxx . . $ CSoundFile#SetupChannelFilter(4984ec9b1cb9496).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, BOOLcxx . . $ BOOL# bReset, int flt_modifier=256) const; |
| 704 | // Low-Level effect processing |
| 705 | void DoFreqSlidecxx . . $ CSoundFile#DoFreqSlide(b6b831f30cb06772).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, LONGcxx . . $ LONG# nFreqSlide); |
| 706 | // Global Effects |
| 707 | void SetTempocxx . . $ CSoundFile#SetTempo(cb2f890c2fdad230).(UINTcxx . . $ UINT# param); |
| 708 | void SetSpeedcxx . . $ CSoundFile#SetSpeed(cb2f890c2fdad230).(UINTcxx . . $ UINT# param); |
| 709 | void GlobalVolSlidecxx . . $ CSoundFile#GlobalVolSlide(cb2f890c2fdad230).(UINTcxx . . $ UINT# param); |
| 710 | DWORDcxx . . $ DWORD# IsSongFinishedcxx . . $ CSoundFile#IsSongFinished(d8d248271de5da2e).(UINTcxx . . $ UINT# nOrder, UINTcxx . . $ UINT# nRow) const; |
| 711 | BOOLcxx . . $ BOOL# IsValidBackwardJumpcxx . . $ CSoundFile#IsValidBackwardJump(f56e7f903333f64c).(UINTcxx . . $ UINT# nStartOrder, UINTcxx . . $ UINT# nStartRow, UINTcxx . . $ UINT# nJumpOrder, UINTcxx . . $ UINT# nJumpRow) const; |
| 712 | // Read/Write sample functions |
| 713 | signed char GetDeltaValuecxx . . $ CSoundFile#GetDeltaValue(354b5d0578f462b3).(signed char prev, UINTcxx . . $ UINT# n) const { return (signed char)(prev + CompressionTablecxx . . $ CSoundFile#CompressionTable.[n & 0x0F]); } |
| 714 | UINTcxx . . $ UINT# PackSamplecxx . . $ CSoundFile#PackSample(4b71366aae262283).(int &sample, int next); |
| 715 | BOOLcxx . . $ BOOL# CanPackSamplecxx . . $ CSoundFile#CanPackSample(5dc0ab41af3adc22).(LPSTRcxx . . $ LPSTR# pSample, UINTcxx . . $ UINT# nLen, UINTcxx . . $ UINT# nPacking, BYTEcxx . . $ BYTE# *result=NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!); |
| 716 | UINTcxx . . $ UINT# ReadSamplecxx . . $ CSoundFile#ReadSample(c75afd520c6e07d).(MODINSTRUMENTcxx . . $ MODINSTRUMENT# *pIns, UINTcxx . . $ UINT# nFlags, LPCSTRcxx . . $ LPCSTR# pMemFile, DWORDcxx . . $ DWORD# dwMemLength); |
| 717 | BOOLcxx . . $ BOOL# DestroySamplecxx . . $ CSoundFile#DestroySample(dfa6e707f7696010).(UINTcxx . . $ UINT# nSample); |
| 718 | BOOLcxx . . $ BOOL# DestroyInstrumentcxx . . $ CSoundFile#DestroyInstrument(dfa6e707f7696010).(UINTcxx . . $ UINT# nInstr); |
| 719 | BOOLcxx . . $ BOOL# IsSampleUsedcxx . . $ CSoundFile#IsSampleUsed(dfa6e707f7696010).(UINTcxx . . $ UINT# nSample); |
| 720 | BOOLcxx . . $ BOOL# IsInstrumentUsedcxx . . $ CSoundFile#IsInstrumentUsed(dfa6e707f7696010).(UINTcxx . . $ UINT# nInstr); |
| 721 | BOOLcxx . . $ BOOL# RemoveInstrumentSamplescxx . . $ CSoundFile#RemoveInstrumentSamples(dfa6e707f7696010).(UINTcxx . . $ UINT# nInstr); |
| 722 | UINTcxx . . $ UINT# DetectUnusedSamplescxx . . $ CSoundFile#DetectUnusedSamples(6eba86349545ae0f).(BOOLcxx . . $ BOOL# *); |
| 723 | BOOLcxx . . $ BOOL# RemoveSelectedSamplescxx . . $ CSoundFile#RemoveSelectedSamples(78ac5d2f3d401626).(BOOLcxx . . $ BOOL# *); |
| 724 | void AdjustSampleLoopcxx . . $ CSoundFile#AdjustSampleLoop(4571e2351ba6f5eb).(MODINSTRUMENTcxx . . $ MODINSTRUMENT# *pIns); |
| 725 | // I/O from another sound file |
| 726 | BOOLcxx . . $ BOOL# ReadInstrumentFromSongcxx . . $ CSoundFile#ReadInstrumentFromSong(2cd64bc3298c7b42).(UINTcxx . . $ UINT# nInstr, CSoundFilecxx . . $ CSoundFile# *, UINTcxx . . $ UINT# nSrcInstrument); |
| 727 | BOOLcxx . . $ BOOL# ReadSampleFromSongcxx . . $ CSoundFile#ReadSampleFromSong(2cd64bc3298c7b42).(UINTcxx . . $ UINT# nSample, CSoundFilecxx . . $ CSoundFile# *, UINTcxx . . $ UINT# nSrcSample); |
| 728 | // Period/Note functions |
| 729 | UINTcxx . . $ UINT# GetNoteFromPeriodcxx . . $ CSoundFile#GetNoteFromPeriod(560347b7e9428769).(UINTcxx . . $ UINT# period) const; |
| 730 | UINTcxx . . $ UINT# GetPeriodFromNotecxx . . $ CSoundFile#GetPeriodFromNote(43fc274f5f61b0a4).(UINTcxx . . $ UINT# note, int nFineTune, UINTcxx . . $ UINT# nC4Speed) const; |
| 731 | UINTcxx . . $ UINT# GetFreqFromPeriodcxx . . $ CSoundFile#GetFreqFromPeriod(164066879dcc91f4).(UINTcxx . . $ UINT# period, UINTcxx . . $ UINT# nC4Speed, int nPeriodFrac=0) const; |
| 732 | // Misc functions |
| 733 | MODINSTRUMENTcxx . . $ MODINSTRUMENT# *GetSamplecxx . . $ CSoundFile#GetSample(9b59b161bbbd84d6).(UINTcxx . . $ UINT# n) { return Inscxx . . $ CSoundFile#Ins.+n; } |
| 734 | void ResetMidiCfgcxx . . $ CSoundFile#ResetMidiCfg(49f6e7a06ebc5aa8).(); |
| 735 | UINTcxx . . $ UINT# MapMidiInstrumentcxx . . $ CSoundFile#MapMidiInstrument(4eebda9b5e4ecc9c).(DWORDcxx . . $ DWORD# dwProgram, UINTcxx . . $ UINT# nChannel, UINTcxx . . $ UINT# nNote); |
| 736 | BOOLcxx . . $ BOOL# ITInstrToMPTcxx . . $ CSoundFile#ITInstrToMPT(75d3b49a0d1d50d1).(const void *p, INSTRUMENTHEADERcxx . . $ INSTRUMENTHEADER# *penv, UINTcxx . . $ UINT# trkvers); |
| 737 | UINTcxx . . $ UINT# SaveMixPluginscxx . . $ CSoundFile#SaveMixPlugins(bf9d0c9bb2de9720).(FILE *f=NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!, BOOLcxx . . $ BOOL# bUpdate=TRUEcxx . . $ `ext/psmplug/stdafx.h:97:9`!); |
| 738 | UINTcxx . . $ UINT# LoadMixPluginscxx . . $ CSoundFile#LoadMixPlugins(28b2e79e39ef4fd8).(const void *pData, UINTcxx . . $ UINT# nLen); |
| 739 | #ifndef NO_FILTER |
| 740 | DWORDcxx . . $ DWORD# CutOffToFrequencycxx . . $ CSoundFile#CutOffToFrequency(e99c713d50db71c7).(UINTcxx . . $ UINT# nCutOff, int flt_modifier=256) const; // [0-255] => [1-10KHz] |
| 741 | #endif |
| 742 | |
| 743 | // Static helper functions |
| 744 | public: |
| 745 | static DWORDcxx . . $ DWORD# TransposeToFrequencycxx . . $ CSoundFile#TransposeToFrequency(58c590d1186ea715).(int transp, int ftune=0); |
| 746 | static int FrequencyToTransposecxx . . $ CSoundFile#FrequencyToTranspose(4c679297bf94b9eb).(DWORDcxx . . $ DWORD# freq); |
| 747 | static void FrequencyToTransposecxx . . $ CSoundFile#FrequencyToTranspose(4571e2351ba6f5eb).(MODINSTRUMENTcxx . . $ MODINSTRUMENT# *psmp); |
| 748 | |
| 749 | // System-Dependant functions |
| 750 | public: |
| 751 | static MODCOMMANDcxx . . $ MODCOMMAND# *AllocatePatterncxx . . $ CSoundFile#AllocatePattern(697652e068d7f138).(UINTcxx . . $ UINT# rows, UINTcxx . . $ UINT# nchns); |
| 752 | static signed char* AllocateSamplecxx . . $ CSoundFile#AllocateSample(f3169d5868adb627).(UINTcxx . . $ UINT# nbytes); |
| 753 | static void FreePatterncxx . . $ CSoundFile#FreePattern(5d22bdacc48458e8).(LPVOIDcxx . . $ LPVOID# pat); |
| 754 | static void FreeSamplecxx . . $ CSoundFile#FreeSample(5d22bdacc48458e8).(LPVOIDcxx . . $ LPVOID# p); |
| 755 | static UINTcxx . . $ UINT# Normalize24BitBuffercxx . . $ CSoundFile#Normalize24BitBuffer(3521ab41803870c8).(LPBYTEcxx . . $ LPBYTE# pbuffer, UINTcxx . . $ UINT# cbsizebytes, DWORDcxx . . $ DWORD# lmax24, DWORDcxx . . $ DWORD# dwByteInc); |
| 756 | }; |
| 757 | |
| 758 | |
| 759 | |
| 760 | ////////////////////////////////////////////////////////// |
| 761 | // WAVE format information |
| 762 | |
| 763 | #pragma pack(1) |
| 764 | |
| 765 | // Standard IFF chunks IDs |
| 766 | #define IFFID_FORMcxx . . $ `ext/psmplug/sndfile.h:766:9`! 0x4d524f46 |
| 767 | #define IFFID_RIFFcxx . . $ `ext/psmplug/sndfile.h:767:9`! 0x46464952 |
| 768 | #define IFFID_WAVEcxx . . $ `ext/psmplug/sndfile.h:768:9`! 0x45564157 |
| 769 | #define IFFID_LISTcxx . . $ `ext/psmplug/sndfile.h:769:9`! 0x5453494C |
| 770 | #define IFFID_INFOcxx . . $ `ext/psmplug/sndfile.h:770:9`! 0x4F464E49 |
| 771 | |
| 772 | // IFF Info fields |
| 773 | #define IFFID_ICOPcxx . . $ `ext/psmplug/sndfile.h:773:9`! 0x504F4349 |
| 774 | #define IFFID_IARTcxx . . $ `ext/psmplug/sndfile.h:774:9`! 0x54524149 |
| 775 | #define IFFID_IPRDcxx . . $ `ext/psmplug/sndfile.h:775:9`! 0x44525049 |
| 776 | #define IFFID_INAMcxx . . $ `ext/psmplug/sndfile.h:776:9`! 0x4D414E49 |
| 777 | #define IFFID_ICMTcxx . . $ `ext/psmplug/sndfile.h:777:9`! 0x544D4349 |
| 778 | #define IFFID_IENGcxx . . $ `ext/psmplug/sndfile.h:778:9`! 0x474E4549 |
| 779 | #define IFFID_ISFTcxx . . $ `ext/psmplug/sndfile.h:779:9`! 0x54465349 |
| 780 | #define IFFID_ISBJcxx . . $ `ext/psmplug/sndfile.h:780:9`! 0x4A425349 |
| 781 | #define IFFID_IGNRcxx . . $ `ext/psmplug/sndfile.h:781:9`! 0x524E4749 |
| 782 | #define IFFID_ICRDcxx . . $ `ext/psmplug/sndfile.h:782:9`! 0x44524349 |
| 783 | |
| 784 | // Wave IFF chunks IDs |
| 785 | #define IFFID_wavecxx . . $ `ext/psmplug/sndfile.h:785:9`! 0x65766177 |
| 786 | #define IFFID_fmtcxx . . $ `ext/psmplug/sndfile.h:786:9`! 0x20746D66 |
| 787 | #define IFFID_wsmpcxx . . $ `ext/psmplug/sndfile.h:787:9`! 0x706D7377 |
| 788 | #define IFFID_pcmcxx . . $ `ext/psmplug/sndfile.h:788:9`! 0x206d6370 |
| 789 | #define IFFID_datacxx . . $ `ext/psmplug/sndfile.h:789:9`! 0x61746164 |
| 790 | #define IFFID_smplcxx . . $ `ext/psmplug/sndfile.h:790:9`! 0x6C706D73 |
| 791 | #define IFFID_xtracxx . . $ `ext/psmplug/sndfile.h:791:9`! 0x61727478 |
| 792 | |
| 793 | typedef struct WAVEFILEHEADERcxx . . $ WAVEFILEHEADER# |
| 794 | { |
| 795 | DWORDcxx . . $ DWORD# id_RIFFcxx . . $ WAVEFILEHEADER#id_RIFF.; // "RIFF" |
| 796 | DWORDcxx . . $ DWORD# filesizecxx . . $ WAVEFILEHEADER#filesize.; // file length-8 |
| 797 | DWORDcxx . . $ DWORD# id_WAVEcxx . . $ WAVEFILEHEADER#id_WAVE.; |
| 798 | } WAVEFILEHEADERcxx . . $ WAVEFILEHEADER#; |
| 799 | |
| 800 | |
| 801 | typedef struct WAVEFORMATHEADERcxx . . $ WAVEFORMATHEADER# |
| 802 | { |
| 803 | DWORDcxx . . $ DWORD# id_fmtcxx . . $ WAVEFORMATHEADER#id_fmt.; // "fmt " |
| 804 | DWORDcxx . . $ DWORD# hdrlencxx . . $ WAVEFORMATHEADER#hdrlen.; // 16 |
| 805 | WORDcxx . . $ WORD# formatcxx . . $ WAVEFORMATHEADER#format.; // 1 |
| 806 | WORDcxx . . $ WORD# channelscxx . . $ WAVEFORMATHEADER#channels.; // 1:mono, 2:stereo |
| 807 | DWORDcxx . . $ DWORD# freqHzcxx . . $ WAVEFORMATHEADER#freqHz.; // sampling freq |
| 808 | DWORDcxx . . $ DWORD# bytesseccxx . . $ WAVEFORMATHEADER#bytessec.; // bytes/sec=freqHz*samplesize |
| 809 | WORDcxx . . $ WORD# samplesizecxx . . $ WAVEFORMATHEADER#samplesize.; // sizeof(sample) |
| 810 | WORDcxx . . $ WORD# bitspersamplecxx . . $ WAVEFORMATHEADER#bitspersample.; // bits per sample (8/16) |
| 811 | } WAVEFORMATHEADERcxx . . $ WAVEFORMATHEADER#; |
| 812 | |
| 813 | |
| 814 | typedef struct WAVEDATAHEADERcxx . . $ WAVEDATAHEADER# |
| 815 | { |
| 816 | DWORDcxx . . $ DWORD# id_datacxx . . $ WAVEDATAHEADER#id_data.; // "data" |
| 817 | DWORDcxx . . $ DWORD# lengthcxx . . $ WAVEDATAHEADER#length.; // length of data |
| 818 | } WAVEDATAHEADERcxx . . $ WAVEDATAHEADER#; |
| 819 | |
| 820 | |
| 821 | typedef struct WAVESMPLHEADERcxx . . $ WAVESMPLHEADER# |
| 822 | { |
| 823 | // SMPL |
| 824 | DWORDcxx . . $ DWORD# smpl_idcxx . . $ WAVESMPLHEADER#smpl_id.; // "smpl" -> 0x6C706D73 |
| 825 | DWORDcxx . . $ DWORD# smpl_lencxx . . $ WAVESMPLHEADER#smpl_len.; // length of smpl: 3Ch (54h with sustain loop) |
| 826 | DWORDcxx . . $ DWORD# dwManufacturercxx . . $ WAVESMPLHEADER#dwManufacturer.; |
| 827 | DWORDcxx . . $ DWORD# dwProductcxx . . $ WAVESMPLHEADER#dwProduct.; |
| 828 | DWORDcxx . . $ DWORD# dwSamplePeriodcxx . . $ WAVESMPLHEADER#dwSamplePeriod.; // 1000000000/freqHz |
| 829 | DWORDcxx . . $ DWORD# dwBaseNotecxx . . $ WAVESMPLHEADER#dwBaseNote.; // 3Ch = C-4 -> 60 + RelativeTone |
| 830 | DWORDcxx . . $ DWORD# dwPitchFractioncxx . . $ WAVESMPLHEADER#dwPitchFraction.; |
| 831 | DWORDcxx . . $ DWORD# dwSMPTEFormatcxx . . $ WAVESMPLHEADER#dwSMPTEFormat.; |
| 832 | DWORDcxx . . $ DWORD# dwSMPTEOffsetcxx . . $ WAVESMPLHEADER#dwSMPTEOffset.; |
| 833 | DWORDcxx . . $ DWORD# dwSampleLoopscxx . . $ WAVESMPLHEADER#dwSampleLoops.; // number of loops |
| 834 | DWORDcxx . . $ DWORD# cbSamplerDatacxx . . $ WAVESMPLHEADER#cbSamplerData.; |
| 835 | } WAVESMPLHEADERcxx . . $ WAVESMPLHEADER#; |
| 836 | |
| 837 | |
| 838 | typedef struct SAMPLELOOPSTRUCTcxx . . $ SAMPLELOOPSTRUCT# |
| 839 | { |
| 840 | DWORDcxx . . $ DWORD# dwIdentifiercxx . . $ SAMPLELOOPSTRUCT#dwIdentifier.; |
| 841 | DWORDcxx . . $ DWORD# dwLoopTypecxx . . $ SAMPLELOOPSTRUCT#dwLoopType.; // 0=normal, 1=bidi |
| 842 | DWORDcxx . . $ DWORD# dwLoopStartcxx . . $ SAMPLELOOPSTRUCT#dwLoopStart.; |
| 843 | DWORDcxx . . $ DWORD# dwLoopEndcxx . . $ SAMPLELOOPSTRUCT#dwLoopEnd.; // Byte offset ? |
| 844 | DWORDcxx . . $ DWORD# dwFractioncxx . . $ SAMPLELOOPSTRUCT#dwFraction.; |
| 845 | DWORDcxx . . $ DWORD# dwPlayCountcxx . . $ SAMPLELOOPSTRUCT#dwPlayCount.; // Loop Count, 0=infinite |
| 846 | } SAMPLELOOPSTRUCTcxx . . $ SAMPLELOOPSTRUCT#; |
| 847 | |
| 848 | |
| 849 | typedef struct WAVESAMPLERINFOcxx . . $ WAVESAMPLERINFO# |
| 850 | { |
| 851 | WAVESMPLHEADERcxx . . $ WAVESMPLHEADER# wsiHdrcxx . . $ WAVESAMPLERINFO#wsiHdr.; |
| 852 | SAMPLELOOPSTRUCTcxx . . $ SAMPLELOOPSTRUCT# wsiLoopscxx . . $ WAVESAMPLERINFO#wsiLoops.[2]; |
| 853 | } WAVESAMPLERINFOcxx . . $ WAVESAMPLERINFO#; |
| 854 | |
| 855 | |
| 856 | typedef struct WAVELISTHEADERcxx . . $ WAVELISTHEADER# |
| 857 | { |
| 858 | DWORDcxx . . $ DWORD# list_idcxx . . $ WAVELISTHEADER#list_id.; // "LIST" -> 0x5453494C |
| 859 | DWORDcxx . . $ DWORD# list_lencxx . . $ WAVELISTHEADER#list_len.; |
| 860 | DWORDcxx . . $ DWORD# infocxx . . $ WAVELISTHEADER#info.; // "INFO" |
| 861 | } WAVELISTHEADERcxx . . $ WAVELISTHEADER#; |
| 862 | |
| 863 | |
| 864 | typedef struct WAVEEXTRAHEADERcxx . . $ WAVEEXTRAHEADER# |
| 865 | { |
| 866 | DWORDcxx . . $ DWORD# xtra_idcxx . . $ WAVEEXTRAHEADER#xtra_id.; // "xtra" -> 0x61727478 |
| 867 | DWORDcxx . . $ DWORD# xtra_lencxx . . $ WAVEEXTRAHEADER#xtra_len.; |
| 868 | DWORDcxx . . $ DWORD# dwFlagscxx . . $ WAVEEXTRAHEADER#dwFlags.; |
| 869 | WORDcxx . . $ WORD# wPancxx . . $ WAVEEXTRAHEADER#wPan.; |
| 870 | WORDcxx . . $ WORD# wVolumecxx . . $ WAVEEXTRAHEADER#wVolume.; |
| 871 | WORDcxx . . $ WORD# wGlobalVolcxx . . $ WAVEEXTRAHEADER#wGlobalVol.; |
| 872 | WORDcxx . . $ WORD# wReservedcxx . . $ WAVEEXTRAHEADER#wReserved.; |
| 873 | BYTEcxx . . $ BYTE# nVibTypecxx . . $ WAVEEXTRAHEADER#nVibType.; |
| 874 | BYTEcxx . . $ BYTE# nVibSweepcxx . . $ WAVEEXTRAHEADER#nVibSweep.; |
| 875 | BYTEcxx . . $ BYTE# nVibDepthcxx . . $ WAVEEXTRAHEADER#nVibDepth.; |
| 876 | BYTEcxx . . $ BYTE# nVibRatecxx . . $ WAVEEXTRAHEADER#nVibRate.; |
| 877 | } WAVEEXTRAHEADERcxx . . $ WAVEEXTRAHEADER#; |
| 878 | |
| 879 | #pragma pack() |
| 880 | |
| 881 | /////////////////////////////////////////////////////////// |
| 882 | // Low-level Mixing functions |
| 883 | |
| 884 | #define MIXBUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:884:9`! 512 |
| 885 | #define MIXING_ATTENUATIONcxx . . $ `ext/psmplug/sndfile.h:885:9`! 4 |
| 886 | #define MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`! (-0x08000000) |
| 887 | #define MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`! (0x07FFFFFF) |
| 888 | #define VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`! 12 |
| 889 | #define FADESONGDELAYcxx . . $ `ext/psmplug/sndfile.h:889:9`! 100 |
| 890 | #define EQ_BUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:890:9`! (MIXBUFFERSIZE) |
| 891 | #define AGC_PRECISIONcxx . . $ `ext/psmplug/sndfile.h:891:9`! 9 |
| 892 | #define AGC_UNITYcxx . . $ `ext/psmplug/sndfile.h:892:9`! (1 << AGC_PRECISION) |
| 893 | |
| 894 | // Calling conventions |
| 895 | #ifdef MSC_VER |
| 896 | #define MPPASMCALL __cdecl |
| 897 | #define MPPFASTCALL __fastcall |
| 898 | #else |
| 899 | #define MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! |
| 900 | #define MPPFASTCALLcxx . . $ `ext/psmplug/sndfile.h:900:9`! |
| 901 | #endif |
| 902 | |
| 903 | #define MOD2XMFineTunecxx . . $ `ext/psmplug/sndfile.h:903:9`!(k) ((int)( (signed char)((k)<<4) )) |
| 904 | #define XM2MODFineTunecxx . . $ `ext/psmplug/sndfile.h:904:9`!(k) ((int)( (k>>4)&0x0f )) |
| 905 | |
| 906 | int _muldivcxx . . $ _muldiv(cfe964a60c8b92f5).(long a, long b, long c); |
| 907 | int _muldivrcxx . . $ _muldivr(cfe964a60c8b92f5).(long a, long b, long c); |
| 908 | |
| 909 | |
| 910 | // Functions to read 16 and 32 bits endian-specific data and return in native format: |
| 911 | |
| 912 | inline WORDcxx . . $ WORD# READ_LE16cxx . . $ READ_LE16(469dcb4e54b221a8).(LPCBYTEcxx . . $ LPCBYTE# b) { |
| 913 | return (WORDcxx . . $ WORD#)b[0] | ((WORDcxx . . $ WORD#)b[1] << 8); |
| 914 | } |
| 915 | |
| 916 | inline WORDcxx . . $ WORD# READ_BE16cxx . . $ READ_BE16(469dcb4e54b221a8).(LPCBYTEcxx . . $ LPCBYTE# b) { |
| 917 | return (WORDcxx . . $ WORD#)b[1] | ((WORDcxx . . $ WORD#)b[0] << 8); |
| 918 | } |
| 919 | |
| 920 | inline DWORDcxx . . $ DWORD# READ_LE32cxx . . $ READ_LE32(ca1608e2c87725e2).(LPCBYTEcxx . . $ LPCBYTE# b) { |
| 921 | return (DWORDcxx . . $ DWORD#)b[0] | ((DWORDcxx . . $ DWORD#)b[1] << 8) | ((DWORDcxx . . $ DWORD#)b[2] << 16) | ((DWORDcxx . . $ DWORD#)b[3] << 24); |
| 922 | } |
| 923 | |
| 924 | inline DWORDcxx . . $ DWORD# READ_BE32cxx . . $ READ_BE32(ca1608e2c87725e2).(LPCBYTEcxx . . $ LPCBYTE# b) { |
| 925 | return (DWORDcxx . . $ DWORD#)b[3] | ((DWORDcxx . . $ DWORD#)b[2] << 8) | ((DWORDcxx . . $ DWORD#)b[1] << 16) | ((DWORDcxx . . $ DWORD#)b[0] << 24); |
| 926 | } |
| 927 | |
| 928 | // Byte swapping functions from the GNU C Library and libsdl |
| 929 | |
| 930 | /* Swap bytes in 16 bit value. */ |
| 931 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 932 | # define bswap_16cxx . . $ `ext/psmplug/sndfile.h:932:10`!(x) \ |
| 933 | (__extension__ \ |
| 934 | ({ unsigned short int __bsx = (x); \ |
| 935 | ((((__bsx) >> 8) & 0xff) | (((__bsx) & 0xff) << 8)); })) |
| 936 | #else |
| 937 | static __inline unsigned short int |
| 938 | bswap_16 (unsigned short int __bsx) |
| 939 | { |
| 940 | return ((((__bsx) >> 8) & 0xff) | (((__bsx) & 0xff) << 8)); |
| 941 | } |
| 942 | #endif |
| 943 | |
| 944 | /* Swap bytes in 32 bit value. */ |
| 945 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 946 | # define bswap_32cxx . . $ `ext/psmplug/sndfile.h:946:10`!(x) \ |
| 947 | (__extension__ \ |
| 948 | ({ unsigned int __bsx = (x); \ |
| 949 | ((((__bsx) & 0xff000000) >> 24) | (((__bsx) & 0x00ff0000) >> 8) | \ |
| 950 | (((__bsx) & 0x0000ff00) << 8) | (((__bsx) & 0x000000ff) << 24)); })) |
| 951 | #else |
| 952 | static __inline unsigned int |
| 953 | bswap_32 (unsigned int __bsx) |
| 954 | { |
| 955 | return ((((__bsx) & 0xff000000) >> 24) | (((__bsx) & 0x00ff0000) >> 8) | |
| 956 | (((__bsx) & 0x0000ff00) << 8) | (((__bsx) & 0x000000ff) << 24)); |
| 957 | } |
| 958 | #endif |
| 959 | |
| 960 | #if (defined ARM) && (defined _WIN32_WCE) |
| 961 | static __inline unsigned short int |
| 962 | ARM_get16(const void *data) |
| 963 | { |
| 964 | unsigned short int s; |
| 965 | memcpy(&s,data,sizeof(s)); |
| 966 | return s; |
| 967 | } |
| 968 | |
| 969 | static __inline unsigned int |
| 970 | ARM_get32(const void *data) |
| 971 | { |
| 972 | unsigned int s; |
| 973 | memcpy(&s,data,sizeof(s)); |
| 974 | return s; |
| 975 | } |
| 976 | |
| 977 | #define bswapLE16(X) ARM_get16(&X) |
| 978 | #define bswapLE32(X) ARM_get32(&X) |
| 979 | #define bswapBE16(X) bswap_16(ARM_get16(&X)) |
| 980 | #define bswapBE32(X) bswap_32(ARM_get32(&X)) |
| 981 | |
| 982 | // From libsdl |
| 983 | #elif defined(WORDS_BIGENDIAN) && WORDS_BIGENDIAN |
| 984 | #define bswapLE16(X) bswap_16(X) |
| 985 | #define bswapLE32(X) bswap_32(X) |
| 986 | #define bswapBE16(X) (X) |
| 987 | #define bswapBE32(X) (X) |
| 988 | #else |
| 989 | #define bswapLE16cxx . . $ `ext/psmplug/sndfile.h:989:9`!(X) (X) |
| 990 | #define bswapLE32cxx . . $ `ext/psmplug/sndfile.h:990:9`!(X) (X) |
| 991 | #define bswapBE16cxx . . $ `ext/psmplug/sndfile.h:991:9`!(X) bswap_16(X) |
| 992 | #define bswapBE32cxx . . $ `ext/psmplug/sndfile.h:992:9`!(X) bswap_32(X) |
| 993 | #endif |
| 994 | |
| 995 | #endif |