12static Acmd* _saveBuffer(
AuFX* fx, s16* oldPos, s32 buff, s32 count, Acmd* cmdBufPos);
42 0, 9, 9830, -9830, 0, 0, 0, 0,
43 3, 7, 3276, -3276, 0x3FFF, 0, 0, 0,
44 0, 10, 5000, 0, 0, 0, 0, 0x5000
52 0, 9, 9830, -9830, 0, 0, 0, 0,
53 2, 6, 3276, -3276, 0x3FFF, 0, 0, 0,
54 9, 12, 3276, -3276, 0x3FFF, 0, 0, 0,
55 0, 13, 6000, 0, 0, 0, 0, 0x5000
64 0, 11, 9830, -9830, 0, 0, 0, 0,
65 4, 9, 3276, -3276, 0x3FFF, 0, 0, 0,
66 11, 15, 3276, -3276, 0x3FFF, 0, 0, 0,
67 0, 16, 8000, 0, 0, 0, 0, 0x5000
268 Acmd* cmdBufPos = ptr;
278 s16 outputBufCopy = outputBuf;
280 n_aSaveBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, outputBuf, osVirtualToPhysical(fx->
input));
283 for (delayIdx = 0; delayIdx < fx->
delayCount; delayIdx++) {
285 f32 fUnityPitch = UNITY_PITCH;
288 if (inPtr < fx->base) {
292 if (outPtr < fx->base) {
295 if (inPtr == prevOutPtr) {
298 n_aLoadBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, buff1, osVirtualToPhysical(inPtr));
304 f32 delta, fratio, fincount;
312 delta = (s32)(delta * fUnityPitch);
313 delta = delta / UNITY_PITCH;
314 fratio = 1.0 - delta;
316 count = (s32) fincount;
320 ramAlign = ((s32) rsOutPtr & 7) >> 1;
322 rsOutPtr -= ramAlign;
323 if (rsOutPtr < fx->base) {
327 cmdBufPos = _saveBuffer(fx, rsOutPtr, rbuff, count + ramAlign, cmdBufPos);
328 ratio = fratio * fUnityPitch;
337 n_aLoadBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, buff2, osVirtualToPhysical(outPtr));
340 aMix(cmdBufPos++, 0, (u16)delay->
ffcoef, buff1, buff2);
343 n_aSaveBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, buff2, osVirtualToPhysical(outPtr));
347 aMix(cmdBufPos++, 0, (u16)delay->
fbcoef, buff2, buff1);
348 n_aSaveBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, buff1, osVirtualToPhysical(inPtr));
352 s16 tmp = buff2 >> 8;
353 n_aLoadADPCM(cmdBufPos++, 32, osVirtualToPhysical(delay->
lowpass_20->
fccoef));
358 n_aSaveBuffer(cmdBufPos++,
FIXED_SAMPLE<<1, buff2, osVirtualToPhysical(outPtr));
361 aMix(cmdBufPos++, 0, (u16)delay->
gain, buff2, outputBufCopy);
418static Acmd* _saveBuffer(
AuFX* fx, s16* oldPos, s32 buf, s32 count, Acmd* cmdBufPos) {