github.com/256dpi/max-go@v0.7.0/lib/msp/r_pfft.h (about) 1 // public fftpatcher struct 2 #ifndef _R_PFFT_H_ 3 #define _R_PFFT_H_ 4 5 #include "ext_prefix.h" 6 #include "ext_mess.h" 7 #include "z_dsp.h" 8 9 #if C74_PRAGMA_STRUCT_PACKPUSH 10 #pragma pack(push, 2) 11 #elif C74_PRAGMA_STRUCT_PACK 12 #pragma pack(2) 13 #endif 14 15 /** Public FFT Patcher struct. 16 @ingroup pfft 17 */ 18 typedef struct _pfftpub { 19 t_pxobject x_obj; 20 t_object *x_parent; ///< parent patcher 21 t_object *x_patcher; ///< patcher loaded 22 struct _dspchain *x_chain; ///< dsp chain within pfft 23 long x_fftsize; ///< fft frame size 24 long x_ffthop; ///< hop between fft frames 25 long x_fftoffset; ///< n samples offset before fft is started 26 long x_fftindex; ///< current index into fft frame 27 short x_fullspect; ///< process half-spectrum (0) or full mirrored spectrum (1)? 28 } t_pfftpub; 29 30 31 #if C74_PRAGMA_STRUCT_PACKPUSH 32 #pragma pack(pop) 33 #elif C74_PRAGMA_STRUCT_PACK 34 #pragma pack() 35 #endif 36 37 #endif