| 1 | /* |
| 2 | * This source code is public domain. |
| 3 | * |
| 4 | * Authors: Olivier Lapicque <[email protected]> |
| 5 | * Markus Fick <[email protected]> spline + fir-resampler |
| 6 | */ |
| 7 | |
| 8 | #include "stdafx.h"cxx . . $ `<file>/ext/psmplug/stdafx.h`/ |
| 9 | #include "sndfile.h"cxx . . $ `<file>/ext/psmplug/sndfile.h`/ |
| 10 | #include <math.h> |
| 11 | |
| 12 | #ifdef MSC_VER |
| 13 | #pragma bss_seg(".modplug") |
| 14 | #endif |
| 15 | |
| 16 | // Front Mix Buffer (Also room for interleaved rear mix) |
| 17 | int MixSoundBuffercxx . . $ MixSoundBuffer.[MIXBUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:884:9`!*4]; |
| 18 | |
| 19 | // Reverb Mix Buffer |
| 20 | #ifndef MODPLUG_NO_REVERB |
| 21 | int MixReverbBuffercxx . . $ MixReverbBuffer.[MIXBUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:884:9`!*2]; |
| 22 | extern UINTcxx . . $ UINT# gnReverbSendcxx . . $ gnReverbSend.; |
| 23 | #endif |
| 24 | |
| 25 | int MixRearBuffercxx . . $ MixRearBuffer.[MIXBUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:884:9`!*2]; |
| 26 | float MixFloatBuffercxx . . $ MixFloatBuffer.[MIXBUFFERSIZEcxx . . $ `ext/psmplug/sndfile.h:884:9`!*2]; |
| 27 | |
| 28 | #ifdef MSC_VER |
| 29 | #pragma bss_seg() |
| 30 | #endif |
| 31 | |
| 32 | |
| 33 | extern LONGcxx . . $ LONG# gnDryROfsVolcxx . . $ gnDryROfsVol.; |
| 34 | extern LONGcxx . . $ LONG# gnDryLOfsVolcxx . . $ gnDryLOfsVol.; |
| 35 | extern LONGcxx . . $ LONG# gnRvbROfsVolcxx . . $ gnRvbROfsVol.; |
| 36 | extern LONGcxx . . $ LONG# gnRvbLOfsVolcxx . . $ gnRvbLOfsVol.; |
| 37 | |
| 38 | /* |
| 39 | *----------------------------------------------------------------------------- |
| 40 | cubic spline interpolation doc, |
| 41 | (derived from "digital image warping", g. wolberg) |
| 42 | |
| 43 | interpolation polynomial: f(x) = A3*(x-floor(x))**3 + A2*(x-floor(x))**2 + |
| 44 | A1*(x-floor(x)) + A0 |
| 45 | |
| 46 | with Y = equispaced data points (dist=1), YD = first derivates of data points and IP = floor(x) |
| 47 | the A[0..3] can be found by solving |
| 48 | A0 = Y[IP] |
| 49 | A1 = YD[IP] |
| 50 | A2 = 3*(Y[IP+1]-Y[IP])-2.0*YD[IP]-YD[IP+1] |
| 51 | A3 = -2.0 * (Y[IP+1]-Y[IP]) + YD[IP] - YD[IP+1] |
| 52 | |
| 53 | with the first derivates as |
| 54 | YD[IP] = 0.5 * (Y[IP+1] - Y[IP-1]); |
| 55 | YD[IP+1] = 0.5 * (Y[IP+2] - Y[IP]) |
| 56 | |
| 57 | the coefs becomes |
| 58 | A0 = Y[IP] |
| 59 | A1 = YD[IP] |
| 60 | = 0.5*(Y[IP+1] - Y[IP-1]); |
| 61 | A2 = 3.0*(Y[IP+1]-Y[IP])-2.0*YD[IP]-YD[IP+1] |
| 62 | = 3.0*(Y[IP+1]-Y[IP]) - 0.5*2.0*(Y[IP+1]-Y[IP-1]) - 0.5*(Y[IP+2]-Y[IP]) |
| 63 | = 3.0*Y[IP+1] - 3.0*Y[IP] - Y[IP+1] + Y[IP-1] - 0.5*Y[IP+2] + 0.5*Y[IP] |
| 64 | = -0.5*Y[IP+2] + 2.0 * Y[IP+1] - 2.5*Y[IP] + Y[IP-1] |
| 65 | = Y[IP-1] + 2 * Y[IP+1] - 0.5 * (5.0 * Y[IP] + Y[IP+2]) |
| 66 | A3 = -2.0*(Y[IP+1]-Y[IP]) + YD[IP] + YD[IP+1] |
| 67 | = -2.0*Y[IP+1] + 2.0*Y[IP] + 0.5*(Y[IP+1]-Y[IP-1]) + 0.5*(Y[IP+2]-Y[IP]) |
| 68 | = -2.0*Y[IP+1] + 2.0*Y[IP] + 0.5*Y[IP+1] - 0.5*Y[IP-1] + 0.5*Y[IP+2] - 0.5*Y[IP] |
| 69 | = 0.5 * Y[IP+2] - 1.5 * Y[IP+1] + 1.5 * Y[IP] - 0.5 * Y[IP-1] |
| 70 | = 0.5 * (3.0 * (Y[IP] - Y[IP+1]) - Y[IP-1] + YP[IP+2]) |
| 71 | |
| 72 | then interpolated data value is (horner rule) |
| 73 | out = (((A3*x)+A2)*x+A1)*x+A0 |
| 74 | |
| 75 | this gives parts of data points Y[IP-1] to Y[IP+2] of |
| 76 | part x**3 x**2 x**1 x**0 |
| 77 | Y[IP-1] -0.5 1 -0.5 0 |
| 78 | Y[IP] 1.5 -2.5 0 1 |
| 79 | Y[IP+1] -1.5 2 0.5 0 |
| 80 | Y[IP+2] 0.5 -0.5 0 0 |
| 81 | *--------------------------------------------------------------------------- |
| 82 | */ |
| 83 | // number of bits used to scale spline coefs |
| 84 | #define SPLINE_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:84:9`! 14 |
| 85 | #define SPLINE_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:85:9`! (1L<<SPLINE_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:84:9`!) |
| 86 | #define SPLINE_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:86:9`! (SPLINE_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:84:9`!-8) |
| 87 | #define SPLINE_16SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:87:9`! (SPLINE_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:84:9`!) |
| 88 | // forces coefsset to unity gain |
| 89 | #define SPLINE_CLAMPFORUNITYcxx . . $ `ext/psmplug/fastmix.cpp:89:9`! |
| 90 | // log2(number) of precalculated splines (range is [4..14]) |
| 91 | #define SPLINE_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:91:9`! 10 |
| 92 | #define SPLINE_LUTLENcxx . . $ `ext/psmplug/fastmix.cpp:92:9`! (1L<<SPLINE_FRACBITS) |
| 93 | |
| 94 | class CzCUBICSPLINEcxx . . $ CzCUBICSPLINE# |
| 95 | { public: |
| 96 | CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#CzCUBICSPLINE(49f6e7a06ebc5aa8).( ); |
| 97 | ~cxx . . $ CzCUBICSPLINE#`~CzCUBICSPLINE`(49f6e7a06ebc5aa8).CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#( ); |
| 98 | static signed short lutcxx . . $ CzCUBICSPLINE#lut.[4*(1L<<SPLINE_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:91:9`!)]; |
| 99 | }; |
| 100 | |
| 101 | signed short CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#::lutcxx . . $ CzCUBICSPLINE#lut.[4*(1L<<SPLINE_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:91:9`!)]; |
| 102 | |
| 103 | CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#::CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#CzCUBICSPLINE(49f6e7a06ebc5aa8).( ) |
| 104 | { int _LIi; |
| 105 | int _LLen = (1L<<SPLINE_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:91:9`!); |
| 106 | float _LFlen = 1.0f / (float)_LLen; |
| 107 | float _LScale = (float)SPLINE_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:85:9`!; |
| 108 | for(_LIi=0;_LIi<_LLen;_LIi++) |
| 109 | { float _LCm1, _LC0, _LC1, _LC2; |
| 110 | float _LX = ((float)_LIi)*_LFlen; |
| 111 | int _LSum,_LIdx = _LIi<<2; |
| 112 | _LCm1 = (float)floorcxx . . $ floor(447c67c6676f75c3).( 0.5 + _LScale*(-0.5*_LX*_LX*_LX + 1.0*_LX*_LX - 0.5*_LX ) ); |
| 113 | _LC0 = (float)floorcxx . . $ floor(447c67c6676f75c3).( 0.5 + _LScale*( 1.5*_LX*_LX*_LX - 2.5*_LX*_LX + 1.0 ) ); |
| 114 | _LC1 = (float)floorcxx . . $ floor(447c67c6676f75c3).( 0.5 + _LScale*(-1.5*_LX*_LX*_LX + 2.0*_LX*_LX + 0.5*_LX ) ); |
| 115 | _LC2 = (float)floorcxx . . $ floor(447c67c6676f75c3).( 0.5 + _LScale*( 0.5*_LX*_LX*_LX - 0.5*_LX*_LX) ); |
| 116 | lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+0] = (signed short)( (_LCm1 < -_LScale) ? -_LScale : ((_LCm1 > _LScale) ? _LScale : _LCm1) ); |
| 117 | lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+1] = (signed short)( (_LC0 < -_LScale) ? -_LScale : ((_LC0 > _LScale) ? _LScale : _LC0 ) ); |
| 118 | lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+2] = (signed short)( (_LC1 < -_LScale) ? -_LScale : ((_LC1 > _LScale) ? _LScale : _LC1 ) ); |
| 119 | lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+3] = (signed short)( (_LC2 < -_LScale) ? -_LScale : ((_LC2 > _LScale) ? _LScale : _LC2 ) ); |
| 120 | #ifdef SPLINE_CLAMPFORUNITYcxx . . $ `ext/psmplug/fastmix.cpp:89:9`! |
| 121 | _LSum = lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+0]+lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+1]+lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+2]+lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+3]; |
| 122 | if( _LSum != SPLINE_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:85:9`! ) |
| 123 | { int _LMax = _LIdx; |
| 124 | if( lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+1]>lutcxx . . $ CzCUBICSPLINE#lut.[_LMax] ) _LMax = _LIdx+1; |
| 125 | if( lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+2]>lutcxx . . $ CzCUBICSPLINE#lut.[_LMax] ) _LMax = _LIdx+2; |
| 126 | if( lutcxx . . $ CzCUBICSPLINE#lut.[_LIdx+3]>lutcxx . . $ CzCUBICSPLINE#lut.[_LMax] ) _LMax = _LIdx+3; |
| 127 | lutcxx . . $ CzCUBICSPLINE#lut.[_LMax] += ((signed short)SPLINE_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:85:9`!-_LSum); |
| 128 | } |
| 129 | #endif |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#::~cxx . . $ CzCUBICSPLINE#`~CzCUBICSPLINE`(49f6e7a06ebc5aa8).CzCUBICSPLINEcxx . . $ CzCUBICSPLINE#( ) |
| 134 | { // nothing todo |
| 135 | } |
| 136 | |
| 137 | CzCUBICSPLINEcxx . . $ CzCUBICSPLINE# ssplinecxx . . $ sspline.; |
| 138 | |
| 139 | /* |
| 140 | ------------------------------------------------------------------------------ |
| 141 | fir interpolation doc, |
| 142 | (derived from "an engineer's guide to fir digital filters", n.j. loy) |
| 143 | |
| 144 | calculate coefficients for ideal lowpass filter (with cutoff = fc in |
| 145 | 0..1 (mapped to 0..nyquist)) |
| 146 | c[-N..N] = (i==0) ? fc : sin(fc*pi*i)/(pi*i) |
| 147 | |
| 148 | then apply selected window to coefficients |
| 149 | c[-N..N] *= w(0..N) |
| 150 | with n in 2*N and w(n) being a window function (see loy) |
| 151 | |
| 152 | then calculate gain and scale filter coefs to have unity gain. |
| 153 | ------------------------------------------------------------------------------ |
| 154 | */ |
| 155 | // quantizer scale of window coefs |
| 156 | #define WFIR_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:156:9`! 15 |
| 157 | #define WFIR_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:157:9`! (1L<<WFIR_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:156:9`!) |
| 158 | #define WFIR_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:158:9`! (WFIR_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:156:9`!-8) |
| 159 | #define WFIR_16BITSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:159:9`! (WFIR_QUANTBITScxx . . $ `ext/psmplug/fastmix.cpp:156:9`!) |
| 160 | // log2(number)-1 of precalculated taps range is [4..12] |
| 161 | #define WFIR_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:161:9`! 10 |
| 162 | #define WFIR_LUTLENcxx . . $ `ext/psmplug/fastmix.cpp:162:9`! ((1L<<(WFIR_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:161:9`!+1))+1) |
| 163 | // number of samples in window |
| 164 | #define WFIR_LOG2WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:164:9`! 3 |
| 165 | #define WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`! (1L<<WFIR_LOG2WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:164:9`!) |
| 166 | #define WFIR_SMPSPERWINGcxx . . $ `ext/psmplug/fastmix.cpp:166:9`! ((WFIR_WIDTH-1)>>1) |
| 167 | // cutoff (1.0 == pi/2) |
| 168 | #define WFIR_CUTOFFcxx . . $ `ext/psmplug/fastmix.cpp:168:9`! 0.90f |
| 169 | // wfir type |
| 170 | #define WFIR_HANNcxx . . $ `ext/psmplug/fastmix.cpp:170:9`! 0 |
| 171 | #define WFIR_HAMMINGcxx . . $ `ext/psmplug/fastmix.cpp:171:9`! 1 |
| 172 | #define WFIR_BLACKMANEXACTcxx . . $ `ext/psmplug/fastmix.cpp:172:9`! 2 |
| 173 | #define WFIR_BLACKMAN3T61cxx . . $ `ext/psmplug/fastmix.cpp:173:9`! 3 |
| 174 | #define WFIR_BLACKMAN3T67cxx . . $ `ext/psmplug/fastmix.cpp:174:9`! 4 |
| 175 | #define WFIR_BLACKMAN4T92cxx . . $ `ext/psmplug/fastmix.cpp:175:9`! 5 |
| 176 | #define WFIR_BLACKMAN4T74cxx . . $ `ext/psmplug/fastmix.cpp:176:9`! 6 |
| 177 | #define WFIR_KAISER4Tcxx . . $ `ext/psmplug/fastmix.cpp:177:9`! 7 |
| 178 | #define WFIR_TYPEcxx . . $ `ext/psmplug/fastmix.cpp:178:9`! WFIR_BLACKMANEXACTcxx . . $ `ext/psmplug/fastmix.cpp:172:9`! |
| 179 | // wfir help |
| 180 | #ifndef M_zPI |
| 181 | #define M_zPIcxx . . $ `ext/psmplug/fastmix.cpp:181:9`! 3.1415926535897932384626433832795 |
| 182 | #endif |
| 183 | #define M_zEPScxx . . $ `ext/psmplug/fastmix.cpp:183:9`! 1e-8 |
| 184 | #define M_zBESSELEPScxx . . $ `ext/psmplug/fastmix.cpp:184:9`! 1e-21 |
| 185 | |
| 186 | class CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR# |
| 187 | { |
| 188 | public: |
| 189 | CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#CzWINDOWEDFIR(49f6e7a06ebc5aa8).( ); |
| 190 | ~cxx . . $ CzWINDOWEDFIR#`~CzWINDOWEDFIR`(49f6e7a06ebc5aa8).CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#( ); |
| 191 | float coefcxx . . $ CzWINDOWEDFIR#coef(c619b2c364a4baa0).( int _PCnr, float _POfs, float _PCut, int _PWidth, int _PType ) |
| 192 | //OLD args to coef: float _PPos, float _PFc, int _PLen ) |
| 193 | { |
| 194 | double _LWidthM1 = _PWidth-1; |
| 195 | double _LWidthM1Half = 0.5*_LWidthM1; |
| 196 | double _LPosU = ((double)_PCnr - _POfs); |
| 197 | double _LPos = _LPosU-_LWidthM1Half; |
| 198 | double _LPIdl = 2.0*M_zPIcxx . . $ `ext/psmplug/fastmix.cpp:181:9`!/_LWidthM1; |
| 199 | double _LWc,_LSi; |
| 200 | if( fabscxx . . $ fabs(447c67c6676f75c3).(_LPos)<M_zEPScxx . . $ `ext/psmplug/fastmix.cpp:183:9`! ) { |
| 201 | _LWc = 1.0; |
| 202 | _LSi = _PCut; |
| 203 | } else { |
| 204 | switch( _PType ) |
| 205 | { |
| 206 | case WFIR_HANNcxx . . $ `ext/psmplug/fastmix.cpp:170:9`!: |
| 207 | _LWc = 0.50 - 0.50 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU); |
| 208 | break; |
| 209 | case WFIR_HAMMINGcxx . . $ `ext/psmplug/fastmix.cpp:171:9`!: |
| 210 | _LWc = 0.54 - 0.46 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU); |
| 211 | break; |
| 212 | case WFIR_BLACKMANEXACTcxx . . $ `ext/psmplug/fastmix.cpp:172:9`!: |
| 213 | _LWc = 0.42 - 0.50 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 214 | 0.08 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU); |
| 215 | break; |
| 216 | case WFIR_BLACKMAN3T61cxx . . $ `ext/psmplug/fastmix.cpp:173:9`!: |
| 217 | _LWc = 0.44959 - 0.49364 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 218 | 0.05677 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU); |
| 219 | break; |
| 220 | case WFIR_BLACKMAN3T67cxx . . $ `ext/psmplug/fastmix.cpp:174:9`!: |
| 221 | _LWc = 0.42323 - 0.49755 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 222 | 0.07922 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU); |
| 223 | break; |
| 224 | case WFIR_BLACKMAN4T92cxx . . $ `ext/psmplug/fastmix.cpp:175:9`!: |
| 225 | _LWc = 0.35875 - 0.48829 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 226 | 0.14128 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU) - |
| 227 | 0.01168 * coscxx . . $ cos(447c67c6676f75c3).(3.0*_LPIdl*_LPosU); |
| 228 | break; |
| 229 | case WFIR_BLACKMAN4T74cxx . . $ `ext/psmplug/fastmix.cpp:176:9`!: |
| 230 | _LWc = 0.40217 - 0.49703 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 231 | 0.09392 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU) - |
| 232 | 0.00183 * coscxx . . $ cos(447c67c6676f75c3).(3.0*_LPIdl*_LPosU); |
| 233 | break; |
| 234 | case WFIR_KAISER4Tcxx . . $ `ext/psmplug/fastmix.cpp:177:9`!: |
| 235 | _LWc = 0.40243 - 0.49804 * coscxx . . $ cos(447c67c6676f75c3).(_LPIdl*_LPosU) + |
| 236 | 0.09831 * coscxx . . $ cos(447c67c6676f75c3).(2.0*_LPIdl*_LPosU) - |
| 237 | 0.00122 * coscxx . . $ cos(447c67c6676f75c3).(3.0*_LPIdl*_LPosU); |
| 238 | break; |
| 239 | default: |
| 240 | _LWc = 1.0; |
| 241 | break; |
| 242 | } |
| 243 | _LPos *= M_zPIcxx . . $ `ext/psmplug/fastmix.cpp:181:9`!; |
| 244 | _LSi = sincxx . . $ sin(447c67c6676f75c3).(_PCut*_LPos)/_LPos; |
| 245 | } |
| 246 | return (float)(_LWc*_LSi); |
| 247 | } |
| 248 | static signed short lutcxx . . $ CzWINDOWEDFIR#lut.[WFIR_LUTLENcxx . . $ `ext/psmplug/fastmix.cpp:162:9`!*WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!]; |
| 249 | }; |
| 250 | |
| 251 | signed short CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#::lutcxx . . $ CzWINDOWEDFIR#lut.[WFIR_LUTLENcxx . . $ `ext/psmplug/fastmix.cpp:162:9`!*WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!]; |
| 252 | |
| 253 | CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#::CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#CzWINDOWEDFIR(49f6e7a06ebc5aa8).() |
| 254 | { |
| 255 | int _LPcl; |
| 256 | float _LPcllen = (float)(1L<<WFIR_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:161:9`!); // number of precalculated lines for 0..1 (-1..0) |
| 257 | float _LNorm = 1.0f / (float)(2.0f * _LPcllen); |
| 258 | float _LCut = WFIR_CUTOFFcxx . . $ `ext/psmplug/fastmix.cpp:168:9`!; |
| 259 | float _LScale = (float)WFIR_QUANTSCALEcxx . . $ `ext/psmplug/fastmix.cpp:157:9`!; |
| 260 | for( _LPcl=0;_LPcl<WFIR_LUTLENcxx . . $ `ext/psmplug/fastmix.cpp:162:9`!;_LPcl++ ) |
| 261 | { |
| 262 | float _LGain,_LCoefs[WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!]; |
| 263 | float _LOfs = ((float)_LPcl-_LPcllen)*_LNorm; |
| 264 | int _LCc,_LIdx = _LPcl<<WFIR_LOG2WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:164:9`!; |
| 265 | for( _LCc=0,_LGain=0.0f;_LCc<WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!;_LCc++ ) |
| 266 | { _LGain += (_LCoefs[_LCc] = coefcxx . . $ CzWINDOWEDFIR#coef(c619b2c364a4baa0).( _LCc, _LOfs, _LCut, WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!, WFIR_TYPEcxx . . $ `ext/psmplug/fastmix.cpp:178:9`! )); |
| 267 | } |
| 268 | _LGain = 1.0f/_LGain; |
| 269 | for( _LCc=0;_LCc<WFIR_WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:165:9`!;_LCc++ ) |
| 270 | { float _LCoef = (float)floorcxx . . $ floor(447c67c6676f75c3).( 0.5 + _LScale*_LCoefs[_LCc]*_LGain ); |
| 271 | lutcxx . . $ CzWINDOWEDFIR#lut.[_LIdx+_LCc] = (signed short)( (_LCoef<-_LScale)?-_LScale:((_LCoef>_LScale)?_LScale:_LCoef) ); |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#::~cxx . . $ CzWINDOWEDFIR#`~CzWINDOWEDFIR`(49f6e7a06ebc5aa8).CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR#() |
| 277 | { // nothing todo |
| 278 | } |
| 279 | |
| 280 | CzWINDOWEDFIRcxx . . $ CzWINDOWEDFIR# sfircxx . . $ sfir.; |
| 281 | |
| 282 | // ---------------------------------------------------------------------------- |
| 283 | // MIXING MACROS |
| 284 | // ---------------------------------------------------------------------------- |
| 285 | #define SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`!\ |
| 286 | MODCHANNEL * const pChn = pChannel;\ |
| 287 | nPos = pChn->nPosLo;\ |
| 288 | const signed char *p = (signed char *)(pChn->pCurrentSample+pChn->nPos);\ |
| 289 | if (pChn->dwFlags & CHN_STEREOcxx . . $ `ext/psmplug/sndfile.h:79:9`!) p += pChn->nPos;\ |
| 290 | int *pvol = pbuffer;\ |
| 291 | do { |
| 292 | |
| 293 | #define SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`!\ |
| 294 | MODCHANNEL * const pChn = pChannel;\ |
| 295 | nPos = pChn->nPosLo;\ |
| 296 | const signed short *p = (signed short *)(pChn->pCurrentSample+(pChn->nPos*2));\ |
| 297 | if (pChn->dwFlags & CHN_STEREOcxx . . $ `ext/psmplug/sndfile.h:79:9`!) p += pChn->nPos;\ |
| 298 | int *pvol = pbuffer;\ |
| 299 | do { |
| 300 | |
| 301 | #define SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 302 | nPos += pChn->nInc;\ |
| 303 | } while (pvol < pbufmax);\ |
| 304 | pChn->nPos += nPos >> 16;\ |
| 305 | pChn->nPosLo = nPos & 0xFFFF; |
| 306 | |
| 307 | #define SNDMIX_ENDSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:307:9`! SNDMIX_ENDSAMPLELOOP |
| 308 | #define SNDMIX_ENDSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:308:9`! SNDMIX_ENDSAMPLELOOP |
| 309 | |
| 310 | ////////////////////////////////////////////////////////////////////////////// |
| 311 | // Mono |
| 312 | |
| 313 | // No interpolation |
| 314 | #define SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`!\ |
| 315 | int vol = p[nPos >> 16] << 8; |
| 316 | |
| 317 | #define SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`!\ |
| 318 | int vol = p[nPos >> 16]; |
| 319 | |
| 320 | // Linear Interpolation |
| 321 | #define SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`!\ |
| 322 | int poshi = nPos >> 16;\ |
| 323 | int poslo = (nPos >> 8) & 0xFF;\ |
| 324 | int srcvol = p[poshi];\ |
| 325 | int destvol = p[poshi+1];\ |
| 326 | int vol = (srcvol<<8) + ((int)(poslo * (destvol - srcvol))); |
| 327 | |
| 328 | #define SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`!\ |
| 329 | int poshi = nPos >> 16;\ |
| 330 | int poslo = (nPos >> 8) & 0xFF;\ |
| 331 | int srcvol = p[poshi];\ |
| 332 | int destvol = p[poshi+1];\ |
| 333 | int vol = srcvol + ((int)(poslo * (destvol - srcvol)) >> 8); |
| 334 | |
| 335 | // spline interpolation (2 guard bits should be enough???) |
| 336 | #define SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`! ((16-SPLINE_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:91:9`!)-2) |
| 337 | #define SPLINE_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:337:9`! (((1L<<(16-SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`!))-1)&~3) |
| 338 | |
| 339 | #define SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! \ |
| 340 | int poshi = nPos >> 16; \ |
| 341 | int poslo = (nPos >> SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`!) & SPLINE_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:337:9`!; \ |
| 342 | int vol = (CzCUBICSPLINE::lut[poslo ]*(int)p[poshi-1] + \ |
| 343 | CzCUBICSPLINE::lut[poslo+1]*(int)p[poshi ] + \ |
| 344 | CzCUBICSPLINE::lut[poslo+3]*(int)p[poshi+2] + \ |
| 345 | CzCUBICSPLINE::lut[poslo+2]*(int)p[poshi+1]) >> SPLINE_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:86:9`!; |
| 346 | |
| 347 | #define SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! \ |
| 348 | int poshi = nPos >> 16; \ |
| 349 | int poslo = (nPos >> SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`!) & SPLINE_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:337:9`!; \ |
| 350 | int vol = (CzCUBICSPLINE::lut[poslo ]*(int)p[poshi-1] + \ |
| 351 | CzCUBICSPLINE::lut[poslo+1]*(int)p[poshi ] + \ |
| 352 | CzCUBICSPLINE::lut[poslo+3]*(int)p[poshi+2] + \ |
| 353 | CzCUBICSPLINE::lut[poslo+2]*(int)p[poshi+1]) >> SPLINE_16SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:87:9`!; |
| 354 | |
| 355 | |
| 356 | // fir interpolation |
| 357 | #define WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`! (16-(WFIR_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:161:9`!+1+WFIR_LOG2WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:164:9`!)) |
| 358 | #define WFIR_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:358:9`! ((((1L<<(17-WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`!))-1)&~((1L<<WFIR_LOG2WIDTHcxx . . $ `ext/psmplug/fastmix.cpp:164:9`!)-1))) |
| 359 | #define WFIR_FRACHALVEcxx . . $ `ext/psmplug/fastmix.cpp:359:9`! (1L<<(16-(WFIR_FRACBITScxx . . $ `ext/psmplug/fastmix.cpp:161:9`!+2))) |
| 360 | |
| 361 | #define SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! \ |
| 362 | int poshi = nPos >> 16;\ |
| 363 | int poslo = (nPos & 0xFFFF);\ |
| 364 | int firidx = ((poslo+WFIR_FRACHALVEcxx . . $ `ext/psmplug/fastmix.cpp:359:9`!)>>WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`!) & WFIR_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:358:9`!; \ |
| 365 | int vol = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[poshi+1-4]); \ |
| 366 | vol += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[poshi+2-4]); \ |
| 367 | vol += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[poshi+3-4]); \ |
| 368 | vol += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[poshi+4-4]); \ |
| 369 | vol += (CzWINDOWEDFIR::lut[firidx+4]*(int)p[poshi+5-4]); \ |
| 370 | vol += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[poshi+6-4]); \ |
| 371 | vol += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[poshi+7-4]); \ |
| 372 | vol += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[poshi+8-4]); \ |
| 373 | vol >>= WFIR_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:158:9`!; |
| 374 | |
| 375 | #define SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! \ |
| 376 | int poshi = nPos >> 16;\ |
| 377 | int poslo = (nPos & 0xFFFF);\ |
| 378 | int firidx = ((poslo+WFIR_FRACHALVEcxx . . $ `ext/psmplug/fastmix.cpp:359:9`!)>>WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`!) & WFIR_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:358:9`!; \ |
| 379 | int vol1 = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[poshi+1-4]); \ |
| 380 | vol1 += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[poshi+2-4]); \ |
| 381 | vol1 += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[poshi+3-4]); \ |
| 382 | vol1 += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[poshi+4-4]); \ |
| 383 | int vol2 = (CzWINDOWEDFIR::lut[firidx+4]*(int)p[poshi+5-4]); \ |
| 384 | vol2 += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[poshi+6-4]); \ |
| 385 | vol2 += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[poshi+7-4]); \ |
| 386 | vol2 += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[poshi+8-4]); \ |
| 387 | int vol = ((vol1>>1)+(vol2>>1)) >> (WFIR_16BITSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:159:9`!-1); |
| 388 | |
| 389 | ///////////////////////////////////////////////////////////////////////////// |
| 390 | // Stereo |
| 391 | |
| 392 | // No interpolation |
| 393 | #define SNDMIX_GETSTEREOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:393:9`!\ |
| 394 | int vol_l = p[(nPos>>16)*2] << 8;\ |
| 395 | int vol_r = p[(nPos>>16)*2+1] << 8; |
| 396 | |
| 397 | #define SNDMIX_GETSTEREOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:397:9`!\ |
| 398 | int vol_l = p[(nPos>>16)*2];\ |
| 399 | int vol_r = p[(nPos>>16)*2+1]; |
| 400 | |
| 401 | // Linear Interpolation |
| 402 | #define SNDMIX_GETSTEREOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:402:9`!\ |
| 403 | int poshi = nPos >> 16;\ |
| 404 | int poslo = (nPos >> 8) & 0xFF;\ |
| 405 | int srcvol_l = p[poshi*2];\ |
| 406 | int vol_l = (srcvol_l<<8) + ((int)(poslo * (p[poshi*2+2] - srcvol_l)));\ |
| 407 | int srcvol_r = p[poshi*2+1];\ |
| 408 | int vol_r = (srcvol_r<<8) + ((int)(poslo * (p[poshi*2+3] - srcvol_r))); |
| 409 | |
| 410 | #define SNDMIX_GETSTEREOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:410:9`!\ |
| 411 | int poshi = nPos >> 16;\ |
| 412 | int poslo = (nPos >> 8) & 0xFF;\ |
| 413 | int srcvol_l = p[poshi*2];\ |
| 414 | int vol_l = srcvol_l + ((int)(poslo * (p[poshi*2+2] - srcvol_l)) >> 8);\ |
| 415 | int srcvol_r = p[poshi*2+1];\ |
| 416 | int vol_r = srcvol_r + ((int)(poslo * (p[poshi*2+3] - srcvol_r)) >> 8);\ |
| 417 | |
| 418 | // Spline Interpolation |
| 419 | #define SNDMIX_GETSTEREOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:419:9`! \ |
| 420 | int poshi = nPos >> 16; \ |
| 421 | int poslo = (nPos >> SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`!) & SPLINE_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:337:9`!; \ |
| 422 | int vol_l = (CzCUBICSPLINE::lut[poslo ]*(int)p[(poshi-1)*2 ] + \ |
| 423 | CzCUBICSPLINE::lut[poslo+1]*(int)p[(poshi )*2 ] + \ |
| 424 | CzCUBICSPLINE::lut[poslo+2]*(int)p[(poshi+1)*2 ] + \ |
| 425 | CzCUBICSPLINE::lut[poslo+3]*(int)p[(poshi+2)*2 ]) >> SPLINE_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:86:9`!; \ |
| 426 | int vol_r = (CzCUBICSPLINE::lut[poslo ]*(int)p[(poshi-1)*2+1] + \ |
| 427 | CzCUBICSPLINE::lut[poslo+1]*(int)p[(poshi )*2+1] + \ |
| 428 | CzCUBICSPLINE::lut[poslo+2]*(int)p[(poshi+1)*2+1] + \ |
| 429 | CzCUBICSPLINE::lut[poslo+3]*(int)p[(poshi+2)*2+1]) >> SPLINE_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:86:9`!; |
| 430 | |
| 431 | #define SNDMIX_GETSTEREOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:431:9`! \ |
| 432 | int poshi = nPos >> 16; \ |
| 433 | int poslo = (nPos >> SPLINE_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:336:9`!) & SPLINE_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:337:9`!; \ |
| 434 | int vol_l = (CzCUBICSPLINE::lut[poslo ]*(int)p[(poshi-1)*2 ] + \ |
| 435 | CzCUBICSPLINE::lut[poslo+1]*(int)p[(poshi )*2 ] + \ |
| 436 | CzCUBICSPLINE::lut[poslo+2]*(int)p[(poshi+1)*2 ] + \ |
| 437 | CzCUBICSPLINE::lut[poslo+3]*(int)p[(poshi+2)*2 ]) >> SPLINE_16SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:87:9`!; \ |
| 438 | int vol_r = (CzCUBICSPLINE::lut[poslo ]*(int)p[(poshi-1)*2+1] + \ |
| 439 | CzCUBICSPLINE::lut[poslo+1]*(int)p[(poshi )*2+1] + \ |
| 440 | CzCUBICSPLINE::lut[poslo+2]*(int)p[(poshi+1)*2+1] + \ |
| 441 | CzCUBICSPLINE::lut[poslo+3]*(int)p[(poshi+2)*2+1]) >> SPLINE_16SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:87:9`!; |
| 442 | |
| 443 | // fir interpolation |
| 444 | #define SNDMIX_GETSTEREOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:444:9`! \ |
| 445 | int poshi = nPos >> 16;\ |
| 446 | int poslo = (nPos & 0xFFFF);\ |
| 447 | int firidx = ((poslo+WFIR_FRACHALVEcxx . . $ `ext/psmplug/fastmix.cpp:359:9`!)>>WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`!) & WFIR_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:358:9`!; \ |
| 448 | int vol_l = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[(poshi+1-4)*2 ]); \ |
| 449 | vol_l += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[(poshi+2-4)*2 ]); \ |
| 450 | vol_l += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[(poshi+3-4)*2 ]); \ |
| 451 | vol_l += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[(poshi+4-4)*2 ]); \ |
| 452 | vol_l += (CzWINDOWEDFIR::lut[firidx+4]*(int)p[(poshi+5-4)*2 ]); \ |
| 453 | vol_l += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[(poshi+6-4)*2 ]); \ |
| 454 | vol_l += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[(poshi+7-4)*2 ]); \ |
| 455 | vol_l += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[(poshi+8-4)*2 ]); \ |
| 456 | vol_l >>= WFIR_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:158:9`!; \ |
| 457 | int vol_r = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[(poshi+1-4)*2+1]); \ |
| 458 | vol_r += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[(poshi+2-4)*2+1]); \ |
| 459 | vol_r += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[(poshi+3-4)*2+1]); \ |
| 460 | vol_r += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[(poshi+4-4)*2+1]); \ |
| 461 | vol_r += (CzWINDOWEDFIR::lut[firidx+4]*(int)p[(poshi+5-4)*2+1]); \ |
| 462 | vol_r += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[(poshi+6-4)*2+1]); \ |
| 463 | vol_r += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[(poshi+7-4)*2+1]); \ |
| 464 | vol_r += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[(poshi+8-4)*2+1]); \ |
| 465 | vol_r >>= WFIR_8SHIFTcxx . . $ `ext/psmplug/fastmix.cpp:158:9`!; |
| 466 | |
| 467 | #define SNDMIX_GETSTEREOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:467:9`! \ |
| 468 | int poshi = nPos >> 16;\ |
| 469 | int poslo = (nPos & 0xFFFF);\ |
| 470 | int firidx = ((poslo+WFIR_FRACHALVEcxx . . $ `ext/psmplug/fastmix.cpp:359:9`!)>>WFIR_FRACSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:357:9`!) & WFIR_FRACMASKcxx . . $ `ext/psmplug/fastmix.cpp:358:9`!; \ |
| 471 | int vol1_l = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[(poshi+1-4)*2 ]); \ |
| 472 | vol1_l += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[(poshi+2-4)*2 ]); \ |
| 473 | vol1_l += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[(poshi+3-4)*2 ]); \ |
| 474 | vol1_l += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[(poshi+4-4)*2 ]); \ |
| 475 | int vol2_l = (CzWINDOWEDFIR::lut[firidx+4]*(int)p[(poshi+5-4)*2 ]); \ |
| 476 | vol2_l += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[(poshi+6-4)*2 ]); \ |
| 477 | vol2_l += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[(poshi+7-4)*2 ]); \ |
| 478 | vol2_l += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[(poshi+8-4)*2 ]); \ |
| 479 | int vol_l = ((vol1_l>>1)+(vol2_l>>1)) >> (WFIR_16BITSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:159:9`!-1); \ |
| 480 | int vol1_r = (CzWINDOWEDFIR::lut[firidx+0]*(int)p[(poshi+1-4)*2+1]); \ |
| 481 | vol1_r += (CzWINDOWEDFIR::lut[firidx+1]*(int)p[(poshi+2-4)*2+1]); \ |
| 482 | vol1_r += (CzWINDOWEDFIR::lut[firidx+2]*(int)p[(poshi+3-4)*2+1]); \ |
| 483 | vol1_r += (CzWINDOWEDFIR::lut[firidx+3]*(int)p[(poshi+4-4)*2+1]); \ |
| 484 | int vol2_r = (CzWINDOWEDFIR::lut[firidx+4]*(int)p[(poshi+5-4)*2+1]); \ |
| 485 | vol2_r += (CzWINDOWEDFIR::lut[firidx+5]*(int)p[(poshi+6-4)*2+1]); \ |
| 486 | vol2_r += (CzWINDOWEDFIR::lut[firidx+6]*(int)p[(poshi+7-4)*2+1]); \ |
| 487 | vol2_r += (CzWINDOWEDFIR::lut[firidx+7]*(int)p[(poshi+8-4)*2+1]); \ |
| 488 | int vol_r = ((vol1_r>>1)+(vol2_r>>1)) >> (WFIR_16BITSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:159:9`!-1); |
| 489 | |
| 490 | ///////////////////////////////////////////////////////////////////////////// |
| 491 | |
| 492 | #define SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`!\ |
| 493 | pvol[0] += vol * pChn->nRightVol;\ |
| 494 | pvol[1] += vol * pChn->nLeftVol;\ |
| 495 | pvol += 2; |
| 496 | |
| 497 | #define SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`!\ |
| 498 | pvol[0] += vol_l * pChn->nRightVol;\ |
| 499 | pvol[1] += vol_r * pChn->nLeftVol;\ |
| 500 | pvol += 2; |
| 501 | |
| 502 | #define SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`!\ |
| 503 | int v = vol * pChn->nRightVol;\ |
| 504 | pvol[0] += v;\ |
| 505 | pvol[1] += v;\ |
| 506 | pvol += 2; |
| 507 | |
| 508 | #define SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`!\ |
| 509 | nRampLeftVol += pChn->nLeftRamp;\ |
| 510 | nRampRightVol += pChn->nRightRamp;\ |
| 511 | pvol[0] += vol * (nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!);\ |
| 512 | pvol[1] += vol * (nRampLeftVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!);\ |
| 513 | pvol += 2; |
| 514 | |
| 515 | #define SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`!\ |
| 516 | nRampRightVol += pChn->nRightRamp;\ |
| 517 | int fastvol = vol * (nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!);\ |
| 518 | pvol[0] += fastvol;\ |
| 519 | pvol[1] += fastvol;\ |
| 520 | pvol += 2; |
| 521 | |
| 522 | #define SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`!\ |
| 523 | nRampLeftVol += pChn->nLeftRamp;\ |
| 524 | nRampRightVol += pChn->nRightRamp;\ |
| 525 | pvol[0] += vol_l * (nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!);\ |
| 526 | pvol[1] += vol_r * (nRampLeftVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!);\ |
| 527 | pvol += 2; |
| 528 | |
| 529 | |
| 530 | /////////////////////////////////////////////////// |
| 531 | // Resonant Filters |
| 532 | |
| 533 | // Mono |
| 534 | #define MIX_BEGIN_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:534:9`!\ |
| 535 | int fy1 = pChannel->nFilter_Y1;\ |
| 536 | int fy2 = pChannel->nFilter_Y2;\ |
| 537 | |
| 538 | #define MIX_END_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:538:9`!\ |
| 539 | pChannel->nFilter_Y1 = fy1;\ |
| 540 | pChannel->nFilter_Y2 = fy2; |
| 541 | |
| 542 | #define SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`!\ |
| 543 | vol = (vol * pChn->nFilter_A0 + fy1 * pChn->nFilter_B0 + fy2 * pChn->nFilter_B1 + 4096) >> 13;\ |
| 544 | fy2 = fy1;\ |
| 545 | fy1 = vol;\ |
| 546 | |
| 547 | // Stereo |
| 548 | #define MIX_BEGIN_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:548:9`!\ |
| 549 | int fy1 = pChannel->nFilter_Y1;\ |
| 550 | int fy2 = pChannel->nFilter_Y2;\ |
| 551 | int fy3 = pChannel->nFilter_Y3;\ |
| 552 | int fy4 = pChannel->nFilter_Y4;\ |
| 553 | |
| 554 | #define MIX_END_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:554:9`!\ |
| 555 | pChannel->nFilter_Y1 = fy1;\ |
| 556 | pChannel->nFilter_Y2 = fy2;\ |
| 557 | pChannel->nFilter_Y3 = fy3;\ |
| 558 | pChannel->nFilter_Y4 = fy4;\ |
| 559 | |
| 560 | #define SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`!\ |
| 561 | vol_l = (vol_l * pChn->nFilter_A0 + fy1 * pChn->nFilter_B0 + fy2 * pChn->nFilter_B1 + 4096) >> 13;\ |
| 562 | vol_r = (vol_r * pChn->nFilter_A0 + fy3 * pChn->nFilter_B0 + fy4 * pChn->nFilter_B1 + 4096) >> 13;\ |
| 563 | fy2 = fy1; fy1 = vol_l;\ |
| 564 | fy4 = fy3; fy3 = vol_r;\ |
| 565 | |
| 566 | ////////////////////////////////////////////////////////// |
| 567 | // Interfaces |
| 568 | |
| 569 | typedef VOIDcxx . . $ VOID# (MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! * LPMIXINTERFACEcxx . . $ LPMIXINTERFACE#)(MODCHANNELcxx . . $ MODCHANNEL# *, int *, int *); |
| 570 | |
| 571 | #define BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 572 | VOID MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! func(MODCHANNEL *pChannel, int *pbuffer, int *pbufmax)\ |
| 573 | {\ |
| 574 | LONG nPos; |
| 575 | |
| 576 | #define END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!()\ |
| 577 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 578 | } |
| 579 | |
| 580 | // Volume Ramps |
| 581 | #define BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(func)\ |
| 582 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 583 | LONG nRampRightVol = pChannel->nRampRightVol;\ |
| 584 | LONG nRampLeftVol = pChannel->nRampLeftVol; |
| 585 | |
| 586 | #define END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!()\ |
| 587 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 588 | pChannel->nRampRightVol = nRampRightVol;\ |
| 589 | pChannel->nRightVol = nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 590 | pChannel->nRampLeftVol = nRampLeftVol;\ |
| 591 | pChannel->nLeftVol = nRampLeftVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 592 | } |
| 593 | |
| 594 | #define BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(func)\ |
| 595 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 596 | LONG nRampRightVol = pChannel->nRampRightVol; |
| 597 | |
| 598 | #define END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!()\ |
| 599 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 600 | pChannel->nRampRightVol = nRampRightVol;\ |
| 601 | pChannel->nRampLeftVol = nRampRightVol;\ |
| 602 | pChannel->nRightVol = nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 603 | pChannel->nLeftVol = pChannel->nRightVol;\ |
| 604 | } |
| 605 | |
| 606 | |
| 607 | // Mono Resonant Filters |
| 608 | #define BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(func)\ |
| 609 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 610 | MIX_BEGIN_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:534:9`! |
| 611 | |
| 612 | |
| 613 | #define END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!()\ |
| 614 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 615 | MIX_END_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:538:9`!\ |
| 616 | } |
| 617 | |
| 618 | #define BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(func)\ |
| 619 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 620 | LONG nRampRightVol = pChannel->nRampRightVol;\ |
| 621 | LONG nRampLeftVol = pChannel->nRampLeftVol;\ |
| 622 | MIX_BEGIN_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:534:9`! |
| 623 | |
| 624 | #define END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!()\ |
| 625 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 626 | MIX_END_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:538:9`!\ |
| 627 | pChannel->nRampRightVol = nRampRightVol;\ |
| 628 | pChannel->nRightVol = nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 629 | pChannel->nRampLeftVol = nRampLeftVol;\ |
| 630 | pChannel->nLeftVol = nRampLeftVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 631 | } |
| 632 | |
| 633 | // Stereo Resonant Filters |
| 634 | #define BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(func)\ |
| 635 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 636 | MIX_BEGIN_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:548:9`! |
| 637 | |
| 638 | |
| 639 | #define END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!()\ |
| 640 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 641 | MIX_END_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:554:9`!\ |
| 642 | } |
| 643 | |
| 644 | #define BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(func)\ |
| 645 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(func)\ |
| 646 | LONG nRampRightVol = pChannel->nRampRightVol;\ |
| 647 | LONG nRampLeftVol = pChannel->nRampLeftVol;\ |
| 648 | MIX_BEGIN_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:548:9`! |
| 649 | |
| 650 | #define END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!()\ |
| 651 | SNDMIX_ENDSAMPLELOOPcxx . . $ `ext/psmplug/fastmix.cpp:301:9`!\ |
| 652 | MIX_END_STEREO_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:554:9`!\ |
| 653 | pChannel->nRampRightVol = nRampRightVol;\ |
| 654 | pChannel->nRightVol = nRampRightVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 655 | pChannel->nRampLeftVol = nRampLeftVol;\ |
| 656 | pChannel->nLeftVol = nRampLeftVol >> VOLUMERAMPPRECISIONcxx . . $ `ext/psmplug/sndfile.h:888:9`!;\ |
| 657 | } |
| 658 | |
| 659 | |
| 660 | ///////////////////////////////////////////////////// |
| 661 | // |
| 662 | |
| 663 | static void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_InitMixBuffercxx . . $ X86_InitMixBuffer(4ccd4d0b8005c765).(int *pBuffer, UINTcxx . . $ UINT# nSamples); |
| 664 | static void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_EndChannelOfscxx . . $ X86_EndChannelOfs(5faf84f3a3e3669d).(MODCHANNELcxx . . $ MODCHANNEL# *pChannel, int *pBuffer, UINTcxx . . $ UINT# nSamples); |
| 665 | void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_StereoFillcxx . . $ X86_StereoFill(5a35af595d45e383).(int *pBuffer, UINTcxx . . $ UINT# nSamples, LPLONGcxx . . $ LPLONG# lpROfs, LPLONGcxx . . $ LPLONG# lpLOfs); |
| 666 | |
| 667 | ///////////////////////////////////////////////////// |
| 668 | // Mono samples functions |
| 669 | |
| 670 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono8BitMix) |
| 671 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 672 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 673 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 674 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 675 | |
| 676 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono16BitMix) |
| 677 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 678 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 679 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 680 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 681 | |
| 682 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono8BitLinearMix) |
| 683 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 684 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 685 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 686 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 687 | |
| 688 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono16BitLinearMix) |
| 689 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 690 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 691 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 692 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 693 | |
| 694 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono8BitSplineMix) |
| 695 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 696 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 697 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 698 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 699 | |
| 700 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono16BitSplineMix) |
| 701 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 702 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 703 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 704 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 705 | |
| 706 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono8BitFirFilterMix) |
| 707 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 708 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 709 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 710 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 711 | |
| 712 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Mono16BitFirFilterMix) |
| 713 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 714 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 715 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 716 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 717 | |
| 718 | |
| 719 | // Volume Ramps |
| 720 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono8BitRampMix) |
| 721 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 722 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 723 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 724 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 725 | |
| 726 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono16BitRampMix) |
| 727 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 728 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 729 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 730 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 731 | |
| 732 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono8BitLinearRampMix) |
| 733 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 734 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 735 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 736 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 737 | |
| 738 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono16BitLinearRampMix) |
| 739 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 740 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 741 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 742 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 743 | |
| 744 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono8BitSplineRampMix) |
| 745 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 746 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 747 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 748 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 749 | |
| 750 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono16BitSplineRampMix) |
| 751 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 752 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 753 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 754 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 755 | |
| 756 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono8BitFirFilterRampMix) |
| 757 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 758 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 759 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 760 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 761 | |
| 762 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Mono16BitFirFilterRampMix) |
| 763 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 764 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 765 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 766 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 767 | |
| 768 | |
| 769 | ////////////////////////////////////////////////////// |
| 770 | // Fast mono mix for leftvol=rightvol (1 less imul) |
| 771 | |
| 772 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono8BitMix) |
| 773 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 774 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 775 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 776 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 777 | |
| 778 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono16BitMix) |
| 779 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 780 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 781 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 782 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 783 | |
| 784 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono8BitLinearMix) |
| 785 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 786 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 787 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 788 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 789 | |
| 790 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono16BitLinearMix) |
| 791 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 792 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 793 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 794 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 795 | |
| 796 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono8BitSplineMix) |
| 797 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 798 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 799 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 800 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 801 | |
| 802 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono16BitSplineMix) |
| 803 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 804 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 805 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 806 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 807 | |
| 808 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono8BitFirFilterMix) |
| 809 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 810 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 811 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 812 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 813 | |
| 814 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(FastMono16BitFirFilterMix) |
| 815 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 816 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 817 | SNDMIX_STOREFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:502:9`! |
| 818 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 819 | |
| 820 | |
| 821 | // Fast Ramps |
| 822 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono8BitRampMix) |
| 823 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 824 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 825 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 826 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 827 | |
| 828 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono16BitRampMix) |
| 829 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 830 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 831 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 832 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 833 | |
| 834 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono8BitLinearRampMix) |
| 835 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 836 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 837 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 838 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 839 | |
| 840 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono16BitLinearRampMix) |
| 841 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 842 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 843 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 844 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 845 | |
| 846 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono8BitSplineRampMix) |
| 847 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 848 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 849 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 850 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 851 | |
| 852 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono16BitSplineRampMix) |
| 853 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 854 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 855 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 856 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 857 | |
| 858 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono8BitFirFilterRampMix) |
| 859 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 860 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 861 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 862 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 863 | |
| 864 | BEGIN_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:594:9`!(FastMono16BitFirFilterRampMix) |
| 865 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 866 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 867 | SNDMIX_RAMPFASTMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:515:9`! |
| 868 | END_FASTRAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:598:9`!() |
| 869 | |
| 870 | |
| 871 | ////////////////////////////////////////////////////// |
| 872 | // Stereo samples |
| 873 | |
| 874 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo8BitMix) |
| 875 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 876 | SNDMIX_GETSTEREOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:393:9`! |
| 877 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 878 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 879 | |
| 880 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo16BitMix) |
| 881 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 882 | SNDMIX_GETSTEREOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:397:9`! |
| 883 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 884 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 885 | |
| 886 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo8BitLinearMix) |
| 887 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 888 | SNDMIX_GETSTEREOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:402:9`! |
| 889 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 890 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 891 | |
| 892 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo16BitLinearMix) |
| 893 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 894 | SNDMIX_GETSTEREOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:410:9`! |
| 895 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 896 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 897 | |
| 898 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo8BitSplineMix) |
| 899 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 900 | SNDMIX_GETSTEREOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:419:9`! |
| 901 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 902 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 903 | |
| 904 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo16BitSplineMix) |
| 905 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 906 | SNDMIX_GETSTEREOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:431:9`! |
| 907 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 908 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 909 | |
| 910 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo8BitFirFilterMix) |
| 911 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 912 | SNDMIX_GETSTEREOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:444:9`! |
| 913 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 914 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 915 | |
| 916 | BEGIN_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:571:9`!(Stereo16BitFirFilterMix) |
| 917 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 918 | SNDMIX_GETSTEREOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:467:9`! |
| 919 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 920 | END_MIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:576:9`!() |
| 921 | |
| 922 | |
| 923 | // Volume Ramps |
| 924 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo8BitRampMix) |
| 925 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 926 | SNDMIX_GETSTEREOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:393:9`! |
| 927 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 928 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 929 | |
| 930 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo16BitRampMix) |
| 931 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 932 | SNDMIX_GETSTEREOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:397:9`! |
| 933 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 934 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 935 | |
| 936 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo8BitLinearRampMix) |
| 937 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 938 | SNDMIX_GETSTEREOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:402:9`! |
| 939 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 940 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 941 | |
| 942 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo16BitLinearRampMix) |
| 943 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 944 | SNDMIX_GETSTEREOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:410:9`! |
| 945 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 946 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 947 | |
| 948 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo8BitSplineRampMix) |
| 949 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 950 | SNDMIX_GETSTEREOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:419:9`! |
| 951 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 952 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 953 | |
| 954 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo16BitSplineRampMix) |
| 955 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 956 | SNDMIX_GETSTEREOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:431:9`! |
| 957 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 958 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 959 | |
| 960 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo8BitFirFilterRampMix) |
| 961 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 962 | SNDMIX_GETSTEREOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:444:9`! |
| 963 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 964 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 965 | |
| 966 | BEGIN_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:581:9`!(Stereo16BitFirFilterRampMix) |
| 967 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 968 | SNDMIX_GETSTEREOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:467:9`! |
| 969 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 970 | END_RAMPMIX_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:586:9`!() |
| 971 | |
| 972 | |
| 973 | |
| 974 | ////////////////////////////////////////////////////// |
| 975 | // Resonant Filter Mix |
| 976 | |
| 977 | #ifndef NO_FILTER |
| 978 | |
| 979 | // Mono Filter Mix |
| 980 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono8BitMix) |
| 981 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 982 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 983 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 984 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 985 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 986 | |
| 987 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono16BitMix) |
| 988 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 989 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 990 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 991 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 992 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 993 | |
| 994 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono8BitLinearMix) |
| 995 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 996 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 997 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 998 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 999 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1000 | |
| 1001 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono16BitLinearMix) |
| 1002 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1003 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 1004 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1005 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 1006 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1007 | |
| 1008 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono8BitSplineMix) |
| 1009 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1010 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 1011 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1012 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 1013 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1014 | |
| 1015 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono16BitSplineMix) |
| 1016 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1017 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 1018 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1019 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 1020 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1021 | |
| 1022 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono8BitFirFilterMix) |
| 1023 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1024 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 1025 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1026 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 1027 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1028 | |
| 1029 | BEGIN_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:608:9`!(FilterMono16BitFirFilterMix) |
| 1030 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1031 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 1032 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1033 | SNDMIX_STOREMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:492:9`! |
| 1034 | END_MIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:613:9`!() |
| 1035 | |
| 1036 | // Filter + Ramp |
| 1037 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono8BitRampMix) |
| 1038 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1039 | SNDMIX_GETMONOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:314:9`! |
| 1040 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1041 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1042 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1043 | |
| 1044 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono16BitRampMix) |
| 1045 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1046 | SNDMIX_GETMONOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:317:9`! |
| 1047 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1048 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1049 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1050 | |
| 1051 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono8BitLinearRampMix) |
| 1052 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1053 | SNDMIX_GETMONOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:321:9`! |
| 1054 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1055 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1056 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1057 | |
| 1058 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono16BitLinearRampMix) |
| 1059 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1060 | SNDMIX_GETMONOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:328:9`! |
| 1061 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1062 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1063 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1064 | |
| 1065 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono8BitSplineRampMix) |
| 1066 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1067 | SNDMIX_GETMONOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:339:9`! |
| 1068 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1069 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1070 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1071 | |
| 1072 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono16BitSplineRampMix) |
| 1073 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1074 | SNDMIX_GETMONOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:347:9`! |
| 1075 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1076 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1077 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1078 | |
| 1079 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono8BitFirFilterRampMix) |
| 1080 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1081 | SNDMIX_GETMONOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:361:9`! |
| 1082 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1083 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1084 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1085 | |
| 1086 | BEGIN_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:618:9`!(FilterMono16BitFirFilterRampMix) |
| 1087 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1088 | SNDMIX_GETMONOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:375:9`! |
| 1089 | SNDMIX_PROCESSFILTERcxx . . $ `ext/psmplug/fastmix.cpp:542:9`! |
| 1090 | SNDMIX_RAMPMONOVOLcxx . . $ `ext/psmplug/fastmix.cpp:508:9`! |
| 1091 | END_RAMPMIX_FLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:624:9`!() |
| 1092 | |
| 1093 | |
| 1094 | // Stereo Filter Mix |
| 1095 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo8BitMix) |
| 1096 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1097 | SNDMIX_GETSTEREOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:393:9`! |
| 1098 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1099 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1100 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1101 | |
| 1102 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo16BitMix) |
| 1103 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1104 | SNDMIX_GETSTEREOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:397:9`! |
| 1105 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1106 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1107 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1108 | |
| 1109 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo8BitLinearMix) |
| 1110 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1111 | SNDMIX_GETSTEREOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:402:9`! |
| 1112 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1113 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1114 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1115 | |
| 1116 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo16BitLinearMix) |
| 1117 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1118 | SNDMIX_GETSTEREOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:410:9`! |
| 1119 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1120 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1121 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1122 | |
| 1123 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo8BitSplineMix) |
| 1124 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1125 | SNDMIX_GETSTEREOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:419:9`! |
| 1126 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1127 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1128 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1129 | |
| 1130 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo16BitSplineMix) |
| 1131 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1132 | SNDMIX_GETSTEREOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:431:9`! |
| 1133 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1134 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1135 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1136 | |
| 1137 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo8BitFirFilterMix) |
| 1138 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1139 | SNDMIX_GETSTEREOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:444:9`! |
| 1140 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1141 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1142 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1143 | |
| 1144 | BEGIN_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:634:9`!(FilterStereo16BitFirFilterMix) |
| 1145 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1146 | SNDMIX_GETSTEREOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:467:9`! |
| 1147 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1148 | SNDMIX_STORESTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:497:9`! |
| 1149 | END_MIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:639:9`!() |
| 1150 | |
| 1151 | // Stereo Filter + Ramp |
| 1152 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo8BitRampMix) |
| 1153 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1154 | SNDMIX_GETSTEREOVOL8NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:393:9`! |
| 1155 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1156 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1157 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1158 | |
| 1159 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo16BitRampMix) |
| 1160 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1161 | SNDMIX_GETSTEREOVOL16NOIDOcxx . . $ `ext/psmplug/fastmix.cpp:397:9`! |
| 1162 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1163 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1164 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1165 | |
| 1166 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo8BitLinearRampMix) |
| 1167 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1168 | SNDMIX_GETSTEREOVOL8LINEARcxx . . $ `ext/psmplug/fastmix.cpp:402:9`! |
| 1169 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1170 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1171 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1172 | |
| 1173 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo16BitLinearRampMix) |
| 1174 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1175 | SNDMIX_GETSTEREOVOL16LINEARcxx . . $ `ext/psmplug/fastmix.cpp:410:9`! |
| 1176 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1177 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1178 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1179 | |
| 1180 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo8BitSplineRampMix) |
| 1181 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1182 | SNDMIX_GETSTEREOVOL8SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:419:9`! |
| 1183 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1184 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1185 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1186 | |
| 1187 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo16BitSplineRampMix) |
| 1188 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1189 | SNDMIX_GETSTEREOVOL16SPLINEcxx . . $ `ext/psmplug/fastmix.cpp:431:9`! |
| 1190 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1191 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1192 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1193 | |
| 1194 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo8BitFirFilterRampMix) |
| 1195 | SNDMIX_BEGINSAMPLELOOP8cxx . . $ `ext/psmplug/fastmix.cpp:285:9`! |
| 1196 | SNDMIX_GETSTEREOVOL8FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:444:9`! |
| 1197 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1198 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1199 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1200 | |
| 1201 | BEGIN_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:644:9`!(FilterStereo16BitFirFilterRampMix) |
| 1202 | SNDMIX_BEGINSAMPLELOOP16cxx . . $ `ext/psmplug/fastmix.cpp:293:9`! |
| 1203 | SNDMIX_GETSTEREOVOL16FIRFILTERcxx . . $ `ext/psmplug/fastmix.cpp:467:9`! |
| 1204 | SNDMIX_PROCESSSTEREOFILTERcxx . . $ `ext/psmplug/fastmix.cpp:560:9`! |
| 1205 | SNDMIX_RAMPSTEREOVOLcxx . . $ `ext/psmplug/fastmix.cpp:522:9`! |
| 1206 | END_RAMPMIX_STFLT_INTERFACEcxx . . $ `ext/psmplug/fastmix.cpp:650:9`!() |
| 1207 | |
| 1208 | |
| 1209 | #else |
| 1210 | // Mono |
| 1211 | #define FilterMono8BitMix Mono8BitMix |
| 1212 | #define FilterMono16BitMix Mono16BitMix |
| 1213 | #define FilterMono8BitLinearMix Mono8BitLinearMix |
| 1214 | #define FilterMono16BitLinearMix Mono16BitLinearMix |
| 1215 | #define FilterMono8BitSplineMix Mono8BitSplineMix |
| 1216 | #define FilterMono16BitSplineMix Mono16BitSplineMix |
| 1217 | #define FilterMono8BitFirFilterMix Mono8BitFirFilterMix |
| 1218 | #define FilterMono16BitFirFilterMix Mono16BitFirFilterMix |
| 1219 | #define FilterMono8BitRampMix Mono8BitRampMix |
| 1220 | #define FilterMono16BitRampMix Mono16BitRampMix |
| 1221 | #define FilterMono8BitLinearRampMix Mono8BitLinearRampMix |
| 1222 | #define FilterMono16BitLinearRampMix Mono16BitLinearRampMix |
| 1223 | #define FilterMono8BitSplineRampMix Mono8BitSplineRampMix |
| 1224 | #define FilterMono16BitSplineRampMix Mono16BitSplineRampMix |
| 1225 | #define FilterMono8BitFirFilterRampMix Mono8BitFirFilterRampMix |
| 1226 | #define FilterMono16BitFirFilterRampMix Mono16BitFirFilterRampMix |
| 1227 | // Stereo |
| 1228 | #define FilterStereo8BitMix Stereo8BitMix |
| 1229 | #define FilterStereo16BitMix Stereo16BitMix |
| 1230 | #define FilterStereo8BitLinearMix Stereo8BitLinearMix |
| 1231 | #define FilterStereo16BitLinearMix Stereo16BitLinearMix |
| 1232 | #define FilterStereo8BitSplineMix Stereo8BitSplineMix |
| 1233 | #define FilterStereo16BitSplineMix Stereo16BitSplineMix |
| 1234 | #define FilterStereo8BitFirFilterMix Stereo8BitFirFilterMix |
| 1235 | #define FilterStereo16BitFirFilterMix Stereo16BitFirFilterMix |
| 1236 | #define FilterStereo8BitRampMix Stereo8BitRampMix |
| 1237 | #define FilterStereo16BitRampMix Stereo16BitRampMix |
| 1238 | #define FilterStereo8BitLinearRampMix Stereo8BitLinearRampMix |
| 1239 | #define FilterStereo16BitLinearRampMix Stereo16BitLinearRampMix |
| 1240 | #define FilterStereo8BitSplineRampMix Stereo8BitSplineRampMix |
| 1241 | #define FilterStereo16BitSplineRampMix Stereo16BitSplineRampMix |
| 1242 | #define FilterStereo8BitFirFilterRampMix Stereo8BitFirFilterRampMix |
| 1243 | #define FilterStereo16BitFirFilterRampMix Stereo16BitFirFilterRampMix |
| 1244 | |
| 1245 | #endif |
| 1246 | |
| 1247 | /////////////////////////////////////////////////////////////////////////////// |
| 1248 | // |
| 1249 | // Mix function tables |
| 1250 | // |
| 1251 | // |
| 1252 | // Index is as follow: |
| 1253 | // [b1-b0] format (8-bit-mono, 16-bit-mono, 8-bit-stereo, 16-bit-stereo) |
| 1254 | // [b2] ramp |
| 1255 | // [b3] filter |
| 1256 | // [b5-b4] src type |
| 1257 | // |
| 1258 | |
| 1259 | #define MIXNDX_16BITcxx . . $ `ext/psmplug/fastmix.cpp:1259:9`! 0x01 |
| 1260 | #define MIXNDX_STEREOcxx . . $ `ext/psmplug/fastmix.cpp:1260:9`! 0x02 |
| 1261 | #define MIXNDX_RAMPcxx . . $ `ext/psmplug/fastmix.cpp:1261:9`! 0x04 |
| 1262 | #define MIXNDX_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:1262:9`! 0x08 |
| 1263 | #define MIXNDX_LINEARSRCcxx . . $ `ext/psmplug/fastmix.cpp:1263:9`! 0x10 |
| 1264 | #define MIXNDX_SPLINESRCcxx . . $ `ext/psmplug/fastmix.cpp:1264:9`! 0x20 |
| 1265 | #define MIXNDX_FIRSRCcxx . . $ `ext/psmplug/fastmix.cpp:1265:9`! 0x30 |
| 1266 | |
| 1267 | static const LPMIXINTERFACEcxx . . $ LPMIXINTERFACE# gpMixFunctionTablecxx . . $ gpMixFunctionTable.[2*2*16] = |
| 1268 | { |
| 1269 | // No SRC |
| 1270 | Mono8BitMixcxx . . $ Mono8BitMix(dcd652eba0b9e73b)., Mono16BitMixcxx . . $ Mono16BitMix(dcd652eba0b9e73b)., Stereo8BitMixcxx . . $ Stereo8BitMix(dcd652eba0b9e73b)., Stereo16BitMixcxx . . $ Stereo16BitMix(dcd652eba0b9e73b)., |
| 1271 | Mono8BitRampMixcxx . . $ Mono8BitRampMix(dcd652eba0b9e73b)., Mono16BitRampMixcxx . . $ Mono16BitRampMix(dcd652eba0b9e73b)., Stereo8BitRampMixcxx . . $ Stereo8BitRampMix(dcd652eba0b9e73b)., |
| 1272 | Stereo16BitRampMixcxx . . $ Stereo16BitRampMix(dcd652eba0b9e73b)., |
| 1273 | // No SRC, Filter |
| 1274 | FilterMono8BitMixcxx . . $ FilterMono8BitMix(dcd652eba0b9e73b)., FilterMono16BitMixcxx . . $ FilterMono16BitMix(dcd652eba0b9e73b)., FilterStereo8BitMixcxx . . $ FilterStereo8BitMix(dcd652eba0b9e73b)., |
| 1275 | FilterStereo16BitMixcxx . . $ FilterStereo16BitMix(dcd652eba0b9e73b)., FilterMono8BitRampMixcxx . . $ FilterMono8BitRampMix(dcd652eba0b9e73b)., FilterMono16BitRampMixcxx . . $ FilterMono16BitRampMix(dcd652eba0b9e73b)., |
| 1276 | FilterStereo8BitRampMixcxx . . $ FilterStereo8BitRampMix(dcd652eba0b9e73b)., FilterStereo16BitRampMixcxx . . $ FilterStereo16BitRampMix(dcd652eba0b9e73b)., |
| 1277 | // Linear SRC |
| 1278 | Mono8BitLinearMixcxx . . $ Mono8BitLinearMix(dcd652eba0b9e73b)., Mono16BitLinearMixcxx . . $ Mono16BitLinearMix(dcd652eba0b9e73b)., Stereo8BitLinearMixcxx . . $ Stereo8BitLinearMix(dcd652eba0b9e73b)., |
| 1279 | Stereo16BitLinearMixcxx . . $ Stereo16BitLinearMix(dcd652eba0b9e73b)., Mono8BitLinearRampMixcxx . . $ Mono8BitLinearRampMix(dcd652eba0b9e73b)., Mono16BitLinearRampMixcxx . . $ Mono16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1280 | Stereo8BitLinearRampMixcxx . . $ Stereo8BitLinearRampMix(dcd652eba0b9e73b).,Stereo16BitLinearRampMixcxx . . $ Stereo16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1281 | // Linear SRC, Filter |
| 1282 | FilterMono8BitLinearMixcxx . . $ FilterMono8BitLinearMix(dcd652eba0b9e73b)., FilterMono16BitLinearMixcxx . . $ FilterMono16BitLinearMix(dcd652eba0b9e73b)., |
| 1283 | FilterStereo8BitLinearMixcxx . . $ FilterStereo8BitLinearMix(dcd652eba0b9e73b)., FilterStereo16BitLinearMixcxx . . $ FilterStereo16BitLinearMix(dcd652eba0b9e73b)., |
| 1284 | FilterMono8BitLinearRampMixcxx . . $ FilterMono8BitLinearRampMix(dcd652eba0b9e73b)., FilterMono16BitLinearRampMixcxx . . $ FilterMono16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1285 | FilterStereo8BitLinearRampMixcxx . . $ FilterStereo8BitLinearRampMix(dcd652eba0b9e73b)., FilterStereo16BitLinearRampMixcxx . . $ FilterStereo16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1286 | |
| 1287 | // FirFilter SRC |
| 1288 | Mono8BitSplineMixcxx . . $ Mono8BitSplineMix(dcd652eba0b9e73b)., Mono16BitSplineMixcxx . . $ Mono16BitSplineMix(dcd652eba0b9e73b)., Stereo8BitSplineMixcxx . . $ Stereo8BitSplineMix(dcd652eba0b9e73b)., |
| 1289 | Stereo16BitSplineMixcxx . . $ Stereo16BitSplineMix(dcd652eba0b9e73b)., Mono8BitSplineRampMixcxx . . $ Mono8BitSplineRampMix(dcd652eba0b9e73b)., Mono16BitSplineRampMixcxx . . $ Mono16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1290 | Stereo8BitSplineRampMixcxx . . $ Stereo8BitSplineRampMix(dcd652eba0b9e73b).,Stereo16BitSplineRampMixcxx . . $ Stereo16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1291 | // Spline SRC, Filter |
| 1292 | FilterMono8BitSplineMixcxx . . $ FilterMono8BitSplineMix(dcd652eba0b9e73b)., FilterMono16BitSplineMixcxx . . $ FilterMono16BitSplineMix(dcd652eba0b9e73b)., |
| 1293 | FilterStereo8BitSplineMixcxx . . $ FilterStereo8BitSplineMix(dcd652eba0b9e73b)., FilterStereo16BitSplineMixcxx . . $ FilterStereo16BitSplineMix(dcd652eba0b9e73b)., |
| 1294 | FilterMono8BitSplineRampMixcxx . . $ FilterMono8BitSplineRampMix(dcd652eba0b9e73b)., FilterMono16BitSplineRampMixcxx . . $ FilterMono16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1295 | FilterStereo8BitSplineRampMixcxx . . $ FilterStereo8BitSplineRampMix(dcd652eba0b9e73b)., FilterStereo16BitSplineRampMixcxx . . $ FilterStereo16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1296 | |
| 1297 | // FirFilter SRC |
| 1298 | Mono8BitFirFilterMixcxx . . $ Mono8BitFirFilterMix(dcd652eba0b9e73b)., Mono16BitFirFilterMixcxx . . $ Mono16BitFirFilterMix(dcd652eba0b9e73b)., Stereo8BitFirFilterMixcxx . . $ Stereo8BitFirFilterMix(dcd652eba0b9e73b)., |
| 1299 | Stereo16BitFirFilterMixcxx . . $ Stereo16BitFirFilterMix(dcd652eba0b9e73b)., Mono8BitFirFilterRampMixcxx . . $ Mono8BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1300 | Mono16BitFirFilterRampMixcxx . . $ Mono16BitFirFilterRampMix(dcd652eba0b9e73b)., Stereo8BitFirFilterRampMixcxx . . $ Stereo8BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1301 | Stereo16BitFirFilterRampMixcxx . . $ Stereo16BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1302 | // FirFilter SRC, Filter |
| 1303 | FilterMono8BitFirFilterMixcxx . . $ FilterMono8BitFirFilterMix(dcd652eba0b9e73b)., FilterMono16BitFirFilterMixcxx . . $ FilterMono16BitFirFilterMix(dcd652eba0b9e73b)., |
| 1304 | FilterStereo8BitFirFilterMixcxx . . $ FilterStereo8BitFirFilterMix(dcd652eba0b9e73b)., FilterStereo16BitFirFilterMixcxx . . $ FilterStereo16BitFirFilterMix(dcd652eba0b9e73b)., |
| 1305 | FilterMono8BitFirFilterRampMixcxx . . $ FilterMono8BitFirFilterRampMix(dcd652eba0b9e73b)., FilterMono16BitFirFilterRampMixcxx . . $ FilterMono16BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1306 | FilterStereo8BitFirFilterRampMixcxx . . $ FilterStereo8BitFirFilterRampMix(dcd652eba0b9e73b)., FilterStereo16BitFirFilterRampMixcxx . . $ FilterStereo16BitFirFilterRampMix(dcd652eba0b9e73b). |
| 1307 | }; |
| 1308 | |
| 1309 | static const LPMIXINTERFACEcxx . . $ LPMIXINTERFACE# gpFastMixFunctionTablecxx . . $ gpFastMixFunctionTable.[2*2*16] = |
| 1310 | { |
| 1311 | // No SRC |
| 1312 | FastMono8BitMixcxx . . $ FastMono8BitMix(dcd652eba0b9e73b)., FastMono16BitMixcxx . . $ FastMono16BitMix(dcd652eba0b9e73b)., Stereo8BitMixcxx . . $ Stereo8BitMix(dcd652eba0b9e73b)., Stereo16BitMixcxx . . $ Stereo16BitMix(dcd652eba0b9e73b)., |
| 1313 | FastMono8BitRampMixcxx . . $ FastMono8BitRampMix(dcd652eba0b9e73b)., FastMono16BitRampMixcxx . . $ FastMono16BitRampMix(dcd652eba0b9e73b)., Stereo8BitRampMixcxx . . $ Stereo8BitRampMix(dcd652eba0b9e73b)., |
| 1314 | Stereo16BitRampMixcxx . . $ Stereo16BitRampMix(dcd652eba0b9e73b)., |
| 1315 | // No SRC, Filter |
| 1316 | FilterMono8BitMixcxx . . $ FilterMono8BitMix(dcd652eba0b9e73b)., FilterMono16BitMixcxx . . $ FilterMono16BitMix(dcd652eba0b9e73b)., FilterStereo8BitMixcxx . . $ FilterStereo8BitMix(dcd652eba0b9e73b)., |
| 1317 | FilterStereo16BitMixcxx . . $ FilterStereo16BitMix(dcd652eba0b9e73b)., FilterMono8BitRampMixcxx . . $ FilterMono8BitRampMix(dcd652eba0b9e73b)., FilterMono16BitRampMixcxx . . $ FilterMono16BitRampMix(dcd652eba0b9e73b)., |
| 1318 | FilterStereo8BitRampMixcxx . . $ FilterStereo8BitRampMix(dcd652eba0b9e73b)., FilterStereo16BitRampMixcxx . . $ FilterStereo16BitRampMix(dcd652eba0b9e73b)., |
| 1319 | // Linear SRC |
| 1320 | FastMono8BitLinearMixcxx . . $ FastMono8BitLinearMix(dcd652eba0b9e73b)., FastMono16BitLinearMixcxx . . $ FastMono16BitLinearMix(dcd652eba0b9e73b)., Stereo8BitLinearMixcxx . . $ Stereo8BitLinearMix(dcd652eba0b9e73b)., |
| 1321 | Stereo16BitLinearMixcxx . . $ Stereo16BitLinearMix(dcd652eba0b9e73b)., FastMono8BitLinearRampMixcxx . . $ FastMono8BitLinearRampMix(dcd652eba0b9e73b)., |
| 1322 | FastMono16BitLinearRampMixcxx . . $ FastMono16BitLinearRampMix(dcd652eba0b9e73b)., Stereo8BitLinearRampMixcxx . . $ Stereo8BitLinearRampMix(dcd652eba0b9e73b)., |
| 1323 | Stereo16BitLinearRampMixcxx . . $ Stereo16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1324 | // Linear SRC, Filter |
| 1325 | FilterMono8BitLinearMixcxx . . $ FilterMono8BitLinearMix(dcd652eba0b9e73b)., FilterMono16BitLinearMixcxx . . $ FilterMono16BitLinearMix(dcd652eba0b9e73b)., |
| 1326 | FilterStereo8BitLinearMixcxx . . $ FilterStereo8BitLinearMix(dcd652eba0b9e73b)., FilterStereo16BitLinearMixcxx . . $ FilterStereo16BitLinearMix(dcd652eba0b9e73b)., |
| 1327 | FilterMono8BitLinearRampMixcxx . . $ FilterMono8BitLinearRampMix(dcd652eba0b9e73b)., FilterMono16BitLinearRampMixcxx . . $ FilterMono16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1328 | FilterStereo8BitLinearRampMixcxx . . $ FilterStereo8BitLinearRampMix(dcd652eba0b9e73b)., FilterStereo16BitLinearRampMixcxx . . $ FilterStereo16BitLinearRampMix(dcd652eba0b9e73b)., |
| 1329 | |
| 1330 | // Spline SRC |
| 1331 | Mono8BitSplineMixcxx . . $ Mono8BitSplineMix(dcd652eba0b9e73b)., Mono16BitSplineMixcxx . . $ Mono16BitSplineMix(dcd652eba0b9e73b)., Stereo8BitSplineMixcxx . . $ Stereo8BitSplineMix(dcd652eba0b9e73b)., |
| 1332 | Stereo16BitSplineMixcxx . . $ Stereo16BitSplineMix(dcd652eba0b9e73b)., Mono8BitSplineRampMixcxx . . $ Mono8BitSplineRampMix(dcd652eba0b9e73b)., Mono16BitSplineRampMixcxx . . $ Mono16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1333 | Stereo8BitSplineRampMixcxx . . $ Stereo8BitSplineRampMix(dcd652eba0b9e73b)., Stereo16BitSplineRampMixcxx . . $ Stereo16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1334 | // Spline SRC, Filter |
| 1335 | FilterMono8BitSplineMixcxx . . $ FilterMono8BitSplineMix(dcd652eba0b9e73b)., FilterMono16BitSplineMixcxx . . $ FilterMono16BitSplineMix(dcd652eba0b9e73b)., |
| 1336 | FilterStereo8BitSplineMixcxx . . $ FilterStereo8BitSplineMix(dcd652eba0b9e73b)., FilterStereo16BitSplineMixcxx . . $ FilterStereo16BitSplineMix(dcd652eba0b9e73b)., |
| 1337 | FilterMono8BitSplineRampMixcxx . . $ FilterMono8BitSplineRampMix(dcd652eba0b9e73b)., FilterMono16BitSplineRampMixcxx . . $ FilterMono16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1338 | FilterStereo8BitSplineRampMixcxx . . $ FilterStereo8BitSplineRampMix(dcd652eba0b9e73b)., FilterStereo16BitSplineRampMixcxx . . $ FilterStereo16BitSplineRampMix(dcd652eba0b9e73b)., |
| 1339 | |
| 1340 | // FirFilter SRC |
| 1341 | Mono8BitFirFilterMixcxx . . $ Mono8BitFirFilterMix(dcd652eba0b9e73b)., Mono16BitFirFilterMixcxx . . $ Mono16BitFirFilterMix(dcd652eba0b9e73b)., Stereo8BitFirFilterMixcxx . . $ Stereo8BitFirFilterMix(dcd652eba0b9e73b)., |
| 1342 | Stereo16BitFirFilterMixcxx . . $ Stereo16BitFirFilterMix(dcd652eba0b9e73b)., Mono8BitFirFilterRampMixcxx . . $ Mono8BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1343 | Mono16BitFirFilterRampMixcxx . . $ Mono16BitFirFilterRampMix(dcd652eba0b9e73b)., Stereo8BitFirFilterRampMixcxx . . $ Stereo8BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1344 | Stereo16BitFirFilterRampMixcxx . . $ Stereo16BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1345 | // FirFilter SRC, Filter |
| 1346 | FilterMono8BitFirFilterMixcxx . . $ FilterMono8BitFirFilterMix(dcd652eba0b9e73b)., FilterMono16BitFirFilterMixcxx . . $ FilterMono16BitFirFilterMix(dcd652eba0b9e73b)., |
| 1347 | FilterStereo8BitFirFilterMixcxx . . $ FilterStereo8BitFirFilterMix(dcd652eba0b9e73b)., FilterStereo16BitFirFilterMixcxx . . $ FilterStereo16BitFirFilterMix(dcd652eba0b9e73b)., |
| 1348 | FilterMono8BitFirFilterRampMixcxx . . $ FilterMono8BitFirFilterRampMix(dcd652eba0b9e73b)., FilterMono16BitFirFilterRampMixcxx . . $ FilterMono16BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1349 | FilterStereo8BitFirFilterRampMixcxx . . $ FilterStereo8BitFirFilterRampMix(dcd652eba0b9e73b)., FilterStereo16BitFirFilterRampMixcxx . . $ FilterStereo16BitFirFilterRampMix(dcd652eba0b9e73b)., |
| 1350 | }; |
| 1351 | |
| 1352 | |
| 1353 | ///////////////////////////////////////////////////////////////////////// |
| 1354 | |
| 1355 | static LONGcxx . . $ LONG# MPPFASTCALLcxx . . $ `ext/psmplug/sndfile.h:900:9`! GetSampleCountcxx . . $ GetSampleCount(bb874b859627e1b).(MODCHANNELcxx . . $ MODCHANNEL# *pChn, LONGcxx . . $ LONG# nSamples) |
| 1356 | //--------------------------------------------------------------------- |
| 1357 | { |
| 1358 | LONGcxx . . $ LONG# nLoopStart = (pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_LOOPcxx . . $ `ext/psmplug/sndfile.h:74:9`!) ? pChn->nLoopStartcxx . . $ _MODCHANNEL#nLoopStart. : 0; |
| 1359 | LONGcxx . . $ LONG# nInc = pChn->nInccxx . . $ _MODCHANNEL#nInc.; |
| 1360 | |
| 1361 | if ((nSamples <= 0) || (!nInc) || (!pChn->nLengthcxx . . $ _MODCHANNEL#nLength.)) return 0; |
| 1362 | // Under zero ? |
| 1363 | if ((LONGcxx . . $ LONG#)pChn->nPoscxx . . $ _MODCHANNEL#nPos. < nLoopStart) |
| 1364 | { |
| 1365 | if (nInc < 0) |
| 1366 | { |
| 1367 | // Invert loop for bidi loops |
| 1368 | LONGcxx . . $ LONG# nDelta = ((nLoopStart - pChn->nPoscxx . . $ _MODCHANNEL#nPos.) << 16) - (pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. & 0xffff); |
| 1369 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = nLoopStart | (nDelta>>16); |
| 1370 | pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. = nDelta & 0xffff; |
| 1371 | if (((LONGcxx . . $ LONG#)pChn->nPoscxx . . $ _MODCHANNEL#nPos. < nLoopStart) || |
| 1372 | (pChn->nPoscxx . . $ _MODCHANNEL#nPos. >= (nLoopStart+pChn->nLengthcxx . . $ _MODCHANNEL#nLength.)/2)) |
| 1373 | { |
| 1374 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = nLoopStart; pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. = 0; |
| 1375 | } |
| 1376 | nInc = -nInc; |
| 1377 | pChn->nInccxx . . $ _MODCHANNEL#nInc. = nInc; |
| 1378 | pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. &= ~(CHN_PINGPONGFLAGcxx . . $ `ext/psmplug/sndfile.h:80:9`!); // go forward |
| 1379 | if ((!(pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_LOOPcxx . . $ `ext/psmplug/sndfile.h:74:9`!)) || (pChn->nPoscxx . . $ _MODCHANNEL#nPos. >= pChn->nLengthcxx . . $ _MODCHANNEL#nLength.)) |
| 1380 | { |
| 1381 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = pChn->nLengthcxx . . $ _MODCHANNEL#nLength.; |
| 1382 | pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. = 0; |
| 1383 | return 0; |
| 1384 | } |
| 1385 | } else |
| 1386 | { |
| 1387 | // We probably didn't hit the loop end yet |
| 1388 | // (first loop), so we do nothing |
| 1389 | if ((LONGcxx . . $ LONG#)pChn->nPoscxx . . $ _MODCHANNEL#nPos. < 0) pChn->nPoscxx . . $ _MODCHANNEL#nPos. = 0; |
| 1390 | } |
| 1391 | } else |
| 1392 | // Past the end |
| 1393 | if (pChn->nPoscxx . . $ _MODCHANNEL#nPos. >= pChn->nLengthcxx . . $ _MODCHANNEL#nLength.) |
| 1394 | { |
| 1395 | if (!(pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_LOOPcxx . . $ `ext/psmplug/sndfile.h:74:9`!)) return 0; // not looping -> stop this channel |
| 1396 | if (pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_PINGPONGLOOPcxx . . $ `ext/psmplug/sndfile.h:75:9`!) |
| 1397 | { |
| 1398 | // Invert loop |
| 1399 | if (nInc > 0) |
| 1400 | { |
| 1401 | nInc = -nInc; |
| 1402 | pChn->nInccxx . . $ _MODCHANNEL#nInc. = nInc; |
| 1403 | } |
| 1404 | pChn->dwFlagscxx . . $ _MODCHANNEL#dwFlags. |= CHN_PINGPONGFLAGcxx . . $ `ext/psmplug/sndfile.h:80:9`!; |
| 1405 | // adjust loop position |
| 1406 | LONGcxx . . $ LONG# nDeltaHi = (pChn->nPoscxx . . $ _MODCHANNEL#nPos. - pChn->nLengthcxx . . $ _MODCHANNEL#nLength.); |
| 1407 | LONGcxx . . $ LONG# nDeltaLo = 0x10000 - (pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. & 0xffff); |
| 1408 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = pChn->nLengthcxx . . $ _MODCHANNEL#nLength. - nDeltaHi - (nDeltaLo>>16); |
| 1409 | pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo. = nDeltaLo & 0xffff; |
| 1410 | if ((pChn->nPoscxx . . $ _MODCHANNEL#nPos. <= pChn->nLoopStartcxx . . $ _MODCHANNEL#nLoopStart.) || |
| 1411 | (pChn->nPoscxx . . $ _MODCHANNEL#nPos. >= pChn->nLengthcxx . . $ _MODCHANNEL#nLength.)) |
| 1412 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = pChn->nLengthcxx . . $ _MODCHANNEL#nLength.-1; |
| 1413 | } else |
| 1414 | { |
| 1415 | if (nInc < 0) // This is a bug |
| 1416 | { |
| 1417 | nInc = -nInc; |
| 1418 | pChn->nInccxx . . $ _MODCHANNEL#nInc. = nInc; |
| 1419 | } |
| 1420 | // Restart at loop start |
| 1421 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. += nLoopStart - pChn->nLengthcxx . . $ _MODCHANNEL#nLength.; |
| 1422 | if ((LONGcxx . . $ LONG#)pChn->nPoscxx . . $ _MODCHANNEL#nPos. < nLoopStart) |
| 1423 | pChn->nPoscxx . . $ _MODCHANNEL#nPos. = pChn->nLoopStartcxx . . $ _MODCHANNEL#nLoopStart.; |
| 1424 | } |
| 1425 | } |
| 1426 | LONGcxx . . $ LONG# nPos = pChn->nPoscxx . . $ _MODCHANNEL#nPos.; |
| 1427 | // too big increment, and/or too small loop length |
| 1428 | if (nPos < nLoopStart) |
| 1429 | { |
| 1430 | if ((nPos < 0) || (nInc < 0)) return 0; |
| 1431 | } |
| 1432 | if ((nPos < 0) || (nPos >= (LONGcxx . . $ LONG#)pChn->nLengthcxx . . $ _MODCHANNEL#nLength.)) return 0; |
| 1433 | LONGcxx . . $ LONG# nPosLo = (USHORTcxx . . $ USHORT#)pChn->nPosLocxx . . $ _MODCHANNEL#nPosLo., nSmpCount = nSamples; |
| 1434 | if (nInc < 0) |
| 1435 | { |
| 1436 | LONGcxx . . $ LONG# nInv = -nInc; |
| 1437 | LONGcxx . . $ LONG# maxsamples = 16384 / ((nInv>>16)+1); |
| 1438 | if (maxsamples < 2) maxsamples = 2; |
| 1439 | if (nSamples > maxsamples) nSamples = maxsamples; |
| 1440 | LONGcxx . . $ LONG# nDeltaHi = (nInv>>16) * (nSamples - 1); |
| 1441 | LONGcxx . . $ LONG# nDeltaLo = (nInv&0xffff) * (nSamples - 1); |
| 1442 | LONGcxx . . $ LONG# nPosDest = nPos - nDeltaHi + ((nPosLo - nDeltaLo) >> 16); |
| 1443 | if (nPosDest < nLoopStart) |
| 1444 | { |
| 1445 | nSmpCount = (ULONGcxx . . $ ULONG#)(((((LONGLONGcxx . . $ LONGLONG#)nPos - nLoopStart) << 16) + nPosLo - 1) / nInv) + 1; |
| 1446 | } |
| 1447 | } else |
| 1448 | { |
| 1449 | LONGcxx . . $ LONG# maxsamples = 16384 / ((nInc>>16)+1); |
| 1450 | if (maxsamples < 2) maxsamples = 2; |
| 1451 | if (nSamples > maxsamples) nSamples = maxsamples; |
| 1452 | LONGcxx . . $ LONG# nDeltaHi = (nInc>>16) * (nSamples - 1); |
| 1453 | LONGcxx . . $ LONG# nDeltaLo = (nInc&0xffff) * (nSamples - 1); |
| 1454 | LONGcxx . . $ LONG# nPosDest = nPos + nDeltaHi + ((nPosLo + nDeltaLo)>>16); |
| 1455 | if (nPosDest >= (LONGcxx . . $ LONG#)pChn->nLengthcxx . . $ _MODCHANNEL#nLength.) |
| 1456 | { |
| 1457 | nSmpCount = (ULONGcxx . . $ ULONG#)(((((LONGLONGcxx . . $ LONGLONG#)pChn->nLengthcxx . . $ _MODCHANNEL#nLength. - nPos) << 16) - nPosLo - 1) / nInc) + 1; |
| 1458 | } |
| 1459 | } |
| 1460 | if (nSmpCount <= 1) return 1; |
| 1461 | if (nSmpCount > nSamples) return nSamples; |
| 1462 | return nSmpCount; |
| 1463 | } |
| 1464 | |
| 1465 | |
| 1466 | UINTcxx . . $ UINT# CSoundFilecxx . . $ CSoundFile#::CreateStereoMixcxx . . $ CSoundFile#CreateStereoMix(46cc46841198e427).(int count) |
| 1467 | //----------------------------------------- |
| 1468 | { |
| 1469 | LPLONGcxx . . $ LPLONG# pOfsL, pOfsR; |
| 1470 | DWORDcxx . . $ DWORD# nchused, nchmixed; |
| 1471 | |
| 1472 | if (!count) return 0; |
| 1473 | if (gnChannelscxx . . $ CSoundFile#gnChannels. > 2) X86_InitMixBuffercxx . . $ X86_InitMixBuffer(4ccd4d0b8005c765).(MixRearBuffercxx . . $ MixRearBuffer., count*2); |
| 1474 | nchused = nchmixed = 0; |
| 1475 | for (UINTcxx . . $ UINT# nChn=0; nChn<m_nMixChannelscxx . . $ CSoundFile#m_nMixChannels.; nChn++) |
| 1476 | { |
| 1477 | const LPMIXINTERFACEcxx . . $ LPMIXINTERFACE# *pMixFuncTable; |
| 1478 | MODCHANNELcxx . . $ MODCHANNEL# * const pChannel = &Chncxx . . $ CSoundFile#Chn.[ChnMixcxx . . $ CSoundFile#ChnMix.[nChn]]; |
| 1479 | UINTcxx . . $ UINT# nFlags; |
| 1480 | LONGcxx . . $ LONG# nSmpCount; |
| 1481 | int nsamples; |
| 1482 | int *pbuffer; |
| 1483 | |
| 1484 | if (!pChannel->pCurrentSamplecxx . . $ _MODCHANNEL#pCurrentSample.) continue; |
| 1485 | pOfsR = &gnDryROfsVolcxx . . $ gnDryROfsVol.; |
| 1486 | pOfsL = &gnDryLOfsVolcxx . . $ gnDryLOfsVol.; |
| 1487 | nFlags = 0; |
| 1488 | if (pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_16BITcxx . . $ `ext/psmplug/sndfile.h:73:9`!) nFlags |= MIXNDX_16BITcxx . . $ `ext/psmplug/fastmix.cpp:1259:9`!; |
| 1489 | if (pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_STEREOcxx . . $ `ext/psmplug/sndfile.h:79:9`!) nFlags |= MIXNDX_STEREOcxx . . $ `ext/psmplug/fastmix.cpp:1260:9`!; |
| 1490 | #ifndef NO_FILTER |
| 1491 | if (pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_FILTERcxx . . $ `ext/psmplug/sndfile.h:88:9`!) nFlags |= MIXNDX_FILTERcxx . . $ `ext/psmplug/fastmix.cpp:1262:9`!; |
| 1492 | #endif |
| 1493 | if (!(pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_NOIDOcxx . . $ `ext/psmplug/sndfile.h:86:9`!)) |
| 1494 | { |
| 1495 | // use hq-fir mixer? |
| 1496 | if( (gdwSoundSetupcxx . . $ CSoundFile#gdwSoundSetup. & (SNDMIX_HQRESAMPLERcxx . . $ `ext/psmplug/sndfile.h:260:9`!|SNDMIX_ULTRAHQSRCMODEcxx . . $ `ext/psmplug/sndfile.h:266:9`!)) == |
| 1497 | (SNDMIX_HQRESAMPLERcxx . . $ `ext/psmplug/sndfile.h:260:9`!|SNDMIX_ULTRAHQSRCMODEcxx . . $ `ext/psmplug/sndfile.h:266:9`!) ) |
| 1498 | nFlags += MIXNDX_FIRSRCcxx . . $ `ext/psmplug/fastmix.cpp:1265:9`!; |
| 1499 | else if( (gdwSoundSetupcxx . . $ CSoundFile#gdwSoundSetup. & (SNDMIX_HQRESAMPLERcxx . . $ `ext/psmplug/sndfile.h:260:9`!)) == SNDMIX_HQRESAMPLERcxx . . $ `ext/psmplug/sndfile.h:260:9`! ) |
| 1500 | nFlags += MIXNDX_SPLINESRCcxx . . $ `ext/psmplug/fastmix.cpp:1264:9`!; |
| 1501 | else |
| 1502 | nFlags += MIXNDX_LINEARSRCcxx . . $ `ext/psmplug/fastmix.cpp:1263:9`!; // use |
| 1503 | } |
| 1504 | if ((nFlags < 0x40) && (pChannel->nLeftVolcxx . . $ _MODCHANNEL#nLeftVol. == pChannel->nRightVolcxx . . $ _MODCHANNEL#nRightVol.) |
| 1505 | && ((!pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.) || (pChannel->nLeftRampcxx . . $ _MODCHANNEL#nLeftRamp. == pChannel->nRightRampcxx . . $ _MODCHANNEL#nRightRamp.))) |
| 1506 | { |
| 1507 | pMixFuncTable = gpFastMixFunctionTablecxx . . $ gpFastMixFunctionTable.; |
| 1508 | } else |
| 1509 | { |
| 1510 | pMixFuncTable = gpMixFunctionTablecxx . . $ gpMixFunctionTable.; |
| 1511 | } |
| 1512 | nsamples = count; |
| 1513 | #ifndef MODPLUG_NO_REVERB |
| 1514 | pbuffer = (gdwSoundSetupcxx . . $ CSoundFile#gdwSoundSetup. & SNDMIX_REVERBcxx . . $ `ext/psmplug/sndfile.h:263:9`!) ? MixReverbBuffercxx . . $ MixReverbBuffer. : MixSoundBuffercxx . . $ MixSoundBuffer.; |
| 1515 | if (pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_NOREVERBcxx . . $ `ext/psmplug/sndfile.h:101:9`!) pbuffer = MixSoundBuffercxx . . $ MixSoundBuffer.; |
| 1516 | if (pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_REVERBcxx . . $ `ext/psmplug/sndfile.h:100:9`!) pbuffer = MixReverbBuffercxx . . $ MixReverbBuffer.; |
| 1517 | if (pbuffer == MixReverbBuffercxx . . $ MixReverbBuffer.) |
| 1518 | { |
| 1519 | if (!gnReverbSendcxx . . $ gnReverbSend.) memset(MixReverbBuffercxx . . $ MixReverbBuffer., 0, count * 8); |
| 1520 | gnReverbSendcxx . . $ gnReverbSend. += count; |
| 1521 | } |
| 1522 | #else |
| 1523 | pbuffer = MixSoundBuffer; |
| 1524 | #endif |
| 1525 | nchused++; |
| 1526 | //////////////////////////////////////////////////// |
| 1527 | SampleLooping: |
| 1528 | UINTcxx . . $ UINT# nrampsamples = nsamples; |
| 1529 | if (pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength. > 0) |
| 1530 | { |
| 1531 | if ((LONGcxx . . $ LONG#)nrampsamples > pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.) nrampsamples = pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.; |
| 1532 | } |
| 1533 | if ((nSmpCount = GetSampleCountcxx . . $ GetSampleCount(bb874b859627e1b).(pChannel, nrampsamples)) <= 0) |
| 1534 | { |
| 1535 | // Stopping the channel |
| 1536 | pChannel->pCurrentSamplecxx . . $ _MODCHANNEL#pCurrentSample. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 1537 | pChannel->nLengthcxx . . $ _MODCHANNEL#nLength. = 0; |
| 1538 | pChannel->nPoscxx . . $ _MODCHANNEL#nPos. = 0; |
| 1539 | pChannel->nPosLocxx . . $ _MODCHANNEL#nPosLo. = 0; |
| 1540 | pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength. = 0; |
| 1541 | X86_EndChannelOfscxx . . $ X86_EndChannelOfs(5faf84f3a3e3669d).(pChannel, pbuffer, nsamples); |
| 1542 | *pOfsR += pChannel->nROfscxx . . $ _MODCHANNEL#nROfs.; |
| 1543 | *pOfsL += pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs.; |
| 1544 | pChannel->nROfscxx . . $ _MODCHANNEL#nROfs. = pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs. = 0; |
| 1545 | pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. &= ~CHN_PINGPONGFLAGcxx . . $ `ext/psmplug/sndfile.h:80:9`!; |
| 1546 | continue; |
| 1547 | } |
| 1548 | // Should we mix this channel ? |
| 1549 | UINTcxx . . $ UINT# naddmix; |
| 1550 | if (((nchmixed >= m_nMaxMixChannelscxx . . $ CSoundFile#m_nMaxMixChannels.) && (!(gdwSoundSetupcxx . . $ CSoundFile#gdwSoundSetup. & SNDMIX_DIRECTTODISKcxx . . $ `ext/psmplug/sndfile.h:268:9`!))) |
| 1551 | || ((!pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.) && (!(pChannel->nLeftVolcxx . . $ _MODCHANNEL#nLeftVol.|pChannel->nRightVolcxx . . $ _MODCHANNEL#nRightVol.)))) |
| 1552 | { |
| 1553 | LONGcxx . . $ LONG# delta = (pChannel->nInccxx . . $ _MODCHANNEL#nInc. * (LONGcxx . . $ LONG#)nSmpCount) + (LONGcxx . . $ LONG#)pChannel->nPosLocxx . . $ _MODCHANNEL#nPosLo.; |
| 1554 | pChannel->nPosLocxx . . $ _MODCHANNEL#nPosLo. = delta & 0xFFFF; |
| 1555 | pChannel->nPoscxx . . $ _MODCHANNEL#nPos. += (delta >> 16); |
| 1556 | pChannel->nROfscxx . . $ _MODCHANNEL#nROfs. = pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs. = 0; |
| 1557 | pbuffer += nSmpCount*2; |
| 1558 | naddmix = 0; |
| 1559 | } else |
| 1560 | // Do mixing |
| 1561 | { |
| 1562 | // Choose function for mixing |
| 1563 | LPMIXINTERFACEcxx . . $ LPMIXINTERFACE# pMixFunc; |
| 1564 | pMixFunc = (pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.) ? pMixFuncTable[nFlags|MIXNDX_RAMPcxx . . $ `ext/psmplug/fastmix.cpp:1261:9`!] : pMixFuncTable[nFlags]; |
| 1565 | int *pbufmax = pbuffer + (nSmpCount*2); |
| 1566 | pChannel->nROfscxx . . $ _MODCHANNEL#nROfs. = - *(pbufmax-2); |
| 1567 | pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs. = - *(pbufmax-1); |
| 1568 | pMixFunc(pChannel, pbuffer, pbufmax); |
| 1569 | pChannel->nROfscxx . . $ _MODCHANNEL#nROfs. += *(pbufmax-2); |
| 1570 | pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs. += *(pbufmax-1); |
| 1571 | pbuffer = pbufmax; |
| 1572 | naddmix = 1; |
| 1573 | |
| 1574 | } |
| 1575 | nsamples -= nSmpCount; |
| 1576 | if (pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength.) |
| 1577 | { |
| 1578 | pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength. -= nSmpCount; |
| 1579 | if (pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength. <= 0) |
| 1580 | { |
| 1581 | pChannel->nRampLengthcxx . . $ _MODCHANNEL#nRampLength. = 0; |
| 1582 | pChannel->nRightVolcxx . . $ _MODCHANNEL#nRightVol. = pChannel->nNewRightVolcxx . . $ _MODCHANNEL#nNewRightVol.; |
| 1583 | pChannel->nLeftVolcxx . . $ _MODCHANNEL#nLeftVol. = pChannel->nNewLeftVolcxx . . $ _MODCHANNEL#nNewLeftVol.; |
| 1584 | pChannel->nRightRampcxx . . $ _MODCHANNEL#nRightRamp. = pChannel->nLeftRampcxx . . $ _MODCHANNEL#nLeftRamp. = 0; |
| 1585 | if ((pChannel->dwFlagscxx . . $ _MODCHANNEL#dwFlags. & CHN_NOTEFADEcxx . . $ `ext/psmplug/sndfile.h:84:9`!) && (!(pChannel->nFadeOutVolcxx . . $ _MODCHANNEL#nFadeOutVol.))) |
| 1586 | { |
| 1587 | pChannel->nLengthcxx . . $ _MODCHANNEL#nLength. = 0; |
| 1588 | pChannel->pCurrentSamplecxx . . $ _MODCHANNEL#pCurrentSample. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 1589 | } |
| 1590 | } |
| 1591 | } |
| 1592 | if (nsamples > 0) goto SampleLooping; |
| 1593 | nchmixed += naddmix; |
| 1594 | } |
| 1595 | return nchused; |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | #ifdef MSC_VER |
| 1600 | #pragma warning (disable:4100) |
| 1601 | #endif |
| 1602 | |
| 1603 | // Clip and convert to 8 bit |
| 1604 | // The C version was written by Rani Assaf <[email protected]>, I believe |
| 1605 | DWORDcxx . . $ DWORD# MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_Convert32To8cxx . . $ X86_Convert32To8(935e9cda7767dbcc).(LPVOIDcxx . . $ LPVOID# lp8, int *pBuffer, DWORDcxx . . $ DWORD# lSampleCount, LPLONGcxx . . $ LPLONG# lpMin, LPLONGcxx . . $ LPLONG# lpMax) |
| 1606 | { |
| 1607 | int vumin = *lpMin, vumax = *lpMax; |
| 1608 | unsigned char *p = (unsigned char *)lp8; |
| 1609 | for (UINTcxx . . $ UINT# i=0; i<lSampleCount; i++) |
| 1610 | { |
| 1611 | int n = pBuffer[i]; |
| 1612 | if (n < MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!) |
| 1613 | n = MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!; |
| 1614 | else if (n > MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!) |
| 1615 | n = MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!; |
| 1616 | if (n < vumin) |
| 1617 | vumin = n; |
| 1618 | else if (n > vumax) |
| 1619 | vumax = n; |
| 1620 | p[i] = (n >> (24-MIXING_ATTENUATIONcxx . . $ `ext/psmplug/sndfile.h:885:9`!)) ^ 0x80; // 8-bit unsigned |
| 1621 | } |
| 1622 | *lpMin = vumin; |
| 1623 | *lpMax = vumax; |
| 1624 | return lSampleCount; |
| 1625 | } |
| 1626 | |
| 1627 | // Clip and convert to 16 bit |
| 1628 | // The C version was written by Rani Assaf <[email protected]>, I believe |
| 1629 | DWORDcxx . . $ DWORD# MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_Convert32To16cxx . . $ X86_Convert32To16(935e9cda7767dbcc).(LPVOIDcxx . . $ LPVOID# lp16, int *pBuffer, DWORDcxx . . $ DWORD# lSampleCount, LPLONGcxx . . $ LPLONG# lpMin, LPLONGcxx . . $ LPLONG# lpMax) |
| 1630 | { |
| 1631 | int vumin = *lpMin, vumax = *lpMax; |
| 1632 | signed short *p = (signed short *)lp16; |
| 1633 | for (UINTcxx . . $ UINT# i=0; i<lSampleCount; i++) |
| 1634 | { |
| 1635 | int n = pBuffer[i]; |
| 1636 | if (n < MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!) |
| 1637 | n = MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!; |
| 1638 | else if (n > MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!) |
| 1639 | n = MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!; |
| 1640 | if (n < vumin) |
| 1641 | vumin = n; |
| 1642 | else if (n > vumax) |
| 1643 | vumax = n; |
| 1644 | p[i] = n >> (16-MIXING_ATTENUATIONcxx . . $ `ext/psmplug/sndfile.h:885:9`!); // 16-bit signed |
| 1645 | } |
| 1646 | *lpMin = vumin; |
| 1647 | *lpMax = vumax; |
| 1648 | return lSampleCount * 2; |
| 1649 | } |
| 1650 | |
| 1651 | // Clip and convert to 24 bit |
| 1652 | DWORDcxx . . $ DWORD# MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_Convert32To24cxx . . $ X86_Convert32To24(935e9cda7767dbcc).(LPVOIDcxx . . $ LPVOID# lp16, int *pBuffer, DWORDcxx . . $ DWORD# lSampleCount, LPLONGcxx . . $ LPLONG# lpMin, LPLONGcxx . . $ LPLONG# lpMax) |
| 1653 | { |
| 1654 | UINTcxx . . $ UINT# i ; |
| 1655 | int vumin = *lpMin, vumax = *lpMax; |
| 1656 | int n,p ; |
| 1657 | unsigned char* buf = (unsigned char*)lp16 ; |
| 1658 | |
| 1659 | for ( i=0; i<lSampleCount; i++) |
| 1660 | { |
| 1661 | n = pBuffer[i]; |
| 1662 | if (n < MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!) |
| 1663 | n = MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!; |
| 1664 | else if (n > MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!) |
| 1665 | n = MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!; |
| 1666 | if (n < vumin) |
| 1667 | vumin = n; |
| 1668 | else if (n > vumax) |
| 1669 | vumax = n; |
| 1670 | p = n >> (8-MIXING_ATTENUATIONcxx . . $ `ext/psmplug/sndfile.h:885:9`!) ; // 24-bit signed |
| 1671 | #ifdef WORDS_BIGENDIAN |
| 1672 | buf[i*3+0] = p & 0xFF0000 >> 24; |
| 1673 | buf[i*3+1] = p & 0x00FF00 >> 16 ; |
| 1674 | buf[i*3+2] = p & 0x0000FF ; |
| 1675 | #else |
| 1676 | buf[i*3+0] = p & 0x0000FF ; |
| 1677 | buf[i*3+1] = p & 0x00FF00 >> 16; |
| 1678 | buf[i*3+2] = p & 0xFF0000 >> 24; |
| 1679 | #endif |
| 1680 | } |
| 1681 | *lpMin = vumin; |
| 1682 | *lpMax = vumax; |
| 1683 | return lSampleCount * 3; |
| 1684 | } |
| 1685 | |
| 1686 | // Clip and convert to 32 bit |
| 1687 | DWORDcxx . . $ DWORD# MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_Convert32To32cxx . . $ X86_Convert32To32(935e9cda7767dbcc).(LPVOIDcxx . . $ LPVOID# lp16, int *pBuffer, DWORDcxx . . $ DWORD# lSampleCount, LPLONGcxx . . $ LPLONG# lpMin, LPLONGcxx . . $ LPLONG# lpMax) |
| 1688 | { |
| 1689 | UINTcxx . . $ UINT# i ; |
| 1690 | int vumin = *lpMin, vumax = *lpMax; |
| 1691 | int32_tcxx . . $ int32_t# *p = (int32_tcxx . . $ int32_t# *)lp16; |
| 1692 | |
| 1693 | for ( i=0; i<lSampleCount; i++) |
| 1694 | { |
| 1695 | int n = pBuffer[i]; |
| 1696 | if (n < MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!) |
| 1697 | n = MIXING_CLIPMINcxx . . $ `ext/psmplug/sndfile.h:886:9`!; |
| 1698 | else if (n > MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!) |
| 1699 | n = MIXING_CLIPMAXcxx . . $ `ext/psmplug/sndfile.h:887:9`!; |
| 1700 | if (n < vumin) |
| 1701 | vumin = n; |
| 1702 | else if (n > vumax) |
| 1703 | vumax = n; |
| 1704 | p[i] = n << MIXING_ATTENUATIONcxx . . $ `ext/psmplug/sndfile.h:885:9`!; // 32-bit signed |
| 1705 | } |
| 1706 | *lpMin = vumin; |
| 1707 | *lpMax = vumax; |
| 1708 | return lSampleCount * 4; |
| 1709 | } |
| 1710 | |
| 1711 | // Will fill in later. |
| 1712 | static void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_InitMixBuffercxx . . $ X86_InitMixBuffer(4ccd4d0b8005c765).(int *pBuffer, UINTcxx . . $ UINT# nSamples) |
| 1713 | { |
| 1714 | memset(pBuffer, 0, nSamples * sizeof(int)); |
| 1715 | } |
| 1716 | |
| 1717 | // Multichannel not supported. |
| 1718 | void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_InterleaveFrontRearcxx . . $ X86_InterleaveFrontRear(b610199a770c2a74).(int *, int *, DWORDcxx . . $ DWORD#) |
| 1719 | { |
| 1720 | } |
| 1721 | |
| 1722 | VOIDcxx . . $ VOID# MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_MonoFromStereocxx . . $ X86_MonoFromStereo(4ccd4d0b8005c765).(int *pMixBuf, UINTcxx . . $ UINT# nSamples) |
| 1723 | { |
| 1724 | UINTcxx . . $ UINT# j; |
| 1725 | for(UINTcxx . . $ UINT# i = 0; i < nSamples; i++) |
| 1726 | { |
| 1727 | j = i << 1; |
| 1728 | pMixBuf[i] = (pMixBuf[j] + pMixBuf[j + 1]) >> 1; |
| 1729 | } |
| 1730 | } |
| 1731 | |
| 1732 | #define OFSDECAYSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:1732:9`! 8 |
| 1733 | #define OFSDECAYMASKcxx . . $ `ext/psmplug/fastmix.cpp:1733:9`! 0xFF |
| 1734 | |
| 1735 | void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_StereoFillcxx . . $ X86_StereoFill(5a35af595d45e383).(int *pBuffer, UINTcxx . . $ UINT# nSamples, LPLONGcxx . . $ LPLONG# lpROfs, LPLONGcxx . . $ LPLONG# lpLOfs) |
| 1736 | //---------------------------------------------------------------------------- |
| 1737 | { |
| 1738 | int rofs = *lpROfs; |
| 1739 | int lofs = *lpLOfs; |
| 1740 | |
| 1741 | if ((!rofs) && (!lofs)) |
| 1742 | { |
| 1743 | X86_InitMixBuffercxx . . $ X86_InitMixBuffer(4ccd4d0b8005c765).(pBuffer, nSamples*2); |
| 1744 | return; |
| 1745 | } |
| 1746 | for (UINTcxx . . $ UINT# i=0; i<nSamples; i++) |
| 1747 | { |
| 1748 | int x_r = (rofs + (((-rofs)>>31) & OFSDECAYMASKcxx . . $ `ext/psmplug/fastmix.cpp:1733:9`!)) >> OFSDECAYSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:1732:9`!; |
| 1749 | int x_l = (lofs + (((-lofs)>>31) & OFSDECAYMASKcxx . . $ `ext/psmplug/fastmix.cpp:1733:9`!)) >> OFSDECAYSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:1732:9`!; |
| 1750 | rofs -= x_r; |
| 1751 | lofs -= x_l; |
| 1752 | pBuffer[i*2] = x_r; |
| 1753 | pBuffer[i*2+1] = x_l; |
| 1754 | } |
| 1755 | *lpROfs = rofs; |
| 1756 | *lpLOfs = lofs; |
| 1757 | } |
| 1758 | |
| 1759 | // Will fill in later. |
| 1760 | static void MPPASMCALLcxx . . $ `ext/psmplug/sndfile.h:899:9`! X86_EndChannelOfscxx . . $ X86_EndChannelOfs(5faf84f3a3e3669d).(MODCHANNELcxx . . $ MODCHANNEL# *pChannel, int *pBuffer, UINTcxx . . $ UINT# nSamples) |
| 1761 | { |
| 1762 | int rofs = pChannel->nROfscxx . . $ _MODCHANNEL#nROfs.; |
| 1763 | int lofs = pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs.; |
| 1764 | |
| 1765 | if ((!rofs) && (!lofs)) return; |
| 1766 | for (UINTcxx . . $ UINT# i=0; i<nSamples; i++) |
| 1767 | { |
| 1768 | int x_r = (rofs + (((-rofs)>>31) & OFSDECAYMASKcxx . . $ `ext/psmplug/fastmix.cpp:1733:9`!)) >> OFSDECAYSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:1732:9`!; |
| 1769 | int x_l = (lofs + (((-lofs)>>31) & OFSDECAYMASKcxx . . $ `ext/psmplug/fastmix.cpp:1733:9`!)) >> OFSDECAYSHIFTcxx . . $ `ext/psmplug/fastmix.cpp:1732:9`!; |
| 1770 | rofs -= x_r; |
| 1771 | lofs -= x_l; |
| 1772 | pBuffer[i*2] += x_r; |
| 1773 | pBuffer[i*2+1] += x_l; |
| 1774 | } |
| 1775 | pChannel->nROfscxx . . $ _MODCHANNEL#nROfs. = rofs; |
| 1776 | pChannel->nLOfscxx . . $ _MODCHANNEL#nLOfs. = lofs; |
| 1777 | } |