oscil~/Source/oscil~common.c
void oscil_free(t_oscil *x)
{
#ifdef TARGET_IS_MAX
	/* Remove the object from the DSP chain */
	dsp_free((t_pxobject *)x);
#endif
    
    /* Free allocated dynamic memory */
    free_memory(x->wavetable, x->wavetable_bytes);
    free_memory(x->wavetable_old, x->wavetable_bytes);
    free_memory(x->amplitudes, x->amplitudes_bytes);
	
	/* Print message to Max window */
	post("oscil~ • Memory was freed");
}
/* The 'free instance' routine ************************************************/
The 'free instance' routine
The ' free instance ' routine
void oscil_free(t_oscil *x)
{
#ifdef TARGET_IS_MAX
	dsp_free((t_pxobject *)x);
#endif
    free_memory(x->wavetable, x->wavetable_bytes);
    free_memory(x->wavetable_old, x->wavetable_bytes);
    free_memory(x->amplitudes, x->amplitudes_bytes);
	post("oscil~ • Memory was freed");
}
void oscil_free ( t_oscil * x ) { #ifdef TARGET_IS_MAX dsp_free ( ( t_pxobject * ) x ) ; #endif free_memory ( x -> wavetable , x -> wavetable_bytes ) ; free_memory ( x -> wavetable_old , x -> wavetable_bytes ) ; free_memory ( x -> amplitudes , x -> amplitudes_bytes ) ; post ( " ; }
The 'free instance' routine
The ' free instance ' routine
/* Remove the object from the DSP chain */ /* Free allocated dynamic memory */ /* Print message to Max window */