[PD-cvs] pd/src d_ugen.c,1.3.4.1.2.5.2.7,1.3.4.1.2.5.2.8

Mathieu Bouchard matju at users.sourceforge.net
Thu Jun 28 17:52:04 CEST 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7298

Modified Files:
      Tag: desiredata
	d_ugen.c 
Log Message:
cleanup including removing useless struct variable prefixes


Index: d_ugen.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_ugen.c,v
retrieving revision 1.3.4.1.2.5.2.7
retrieving revision 1.3.4.1.2.5.2.8
diff -C2 -d -r1.3.4.1.2.5.2.7 -r1.3.4.1.2.5.2.8
*** d_ugen.c	28 Jun 2007 10:09:57 -0000	1.3.4.1.2.5.2.7
--- d_ugen.c	28 Jun 2007 15:52:02 -0000	1.3.4.1.2.5.2.8
***************
*** 111,132 ****
  static t_class *block_class;
  
! struct t_block {
!     t_object x_obj;
!     int x_vecsize;      /* size of audio signals in this block */
!     int x_calcsize;     /* number of samples actually to compute */
!     int x_overlap;
!     int x_phase;        /* from 0 to period-1; when zero we run the block */
!     int x_period;       /* submultiple of containing canvas */
!     int x_frequency;    /* supermultiple of comtaining canvas */
[...1294 lines suppressed...]
!     x->x_canvas = canvas_getcurrent();
      return x;
  }
--- 920,935 ----
  static void samplerate_tilde_bang(t_samplerate *x) {
      float srate = sys_getsr();
!     t_canvas *canvas = x->canvas;
      while (canvas) {
          t_block *b = (t_block *)canvas_getblock(block_class, &canvas);
!         if (b) srate *= float(b->upsample) / float(b->downsample);
      }
!     outlet_float(x->ob_outlet, srate);
  }
  
  static void *samplerate_tilde_new(t_symbol *s) {
      t_samplerate *x = (t_samplerate *)pd_new(samplerate_tilde_class);
!     outlet_new(x,&s_float);
!     x->canvas = canvas_getcurrent();
      return x;
  }





More information about the Pd-cvs mailing list