Ignore:
Timestamp:
04/13/08 15:06:13 (17 years ago)
Author:
radscorpion
Message:

libmpcpsy should be complete
added basic VC++ project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsfilters/temp/libmpcenc/src/fft4g.c

    r396 r397  
    1818 */
    1919
     20#include <math.h>
     21#include <string.h>
     22
     23#include <mpc/mpc_types.h>
     24#include <mpc/datatypes.h>
     25#include <mpc/mpcmath.h>
     26
     27#include "../include/libmpcenc.h"
     28#include "psy_model.h"
    2029
    2130
     
    508517}
    509518
     519// patched to only-forward
     520void
     521rdft ( const int n, float* a, int* ip, float* w )
     522{
     523    float  xi;
     524
     525    if ( n > 4) {
     526        bitrv2  ( n, ip + 2, a );
     527        cftfsub ( n, a, w );
     528        rftfsub ( n, a, ip[1], w + ip[0] );
     529    }
     530    else if ( n == 4 ) {
     531        cftfsub ( n, a, w );
     532    }
     533    xi    = a[0] - a[1];
     534    a[0] += a[1];
     535    a[1]  = xi;
     536    return;
     537}
     538
     539
    510540void mpc_psy_model_generate_fft_tables(const int n, int *ip, float *w)
    511541{
Note: See TracChangeset for help on using the changeset viewer.