本文整理汇总了C++中dsp_free函数的典型用法代码示例。如果您正苦于以下问题:C++ dsp_free函数的具体用法?C++ dsp_free怎么用?C++ dsp_free使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dsp_free函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drag_dsp_free
void drag_dsp_free (t_drag *x)
{
dsp_free((t_pxobject *)x);
t_freebytes(x->hz, x->voice_count * sizeof(t_double *));
t_freebytes(x->out, x->voice_count * sizeof(t_double *));
t_freebytes(x->symm, x->voice_count * sizeof(t_double *));
t_freebytes(x->hzFloat, x->voice_count * sizeof(t_double ));
t_freebytes(x->hzActual, x->voice_count * sizeof(t_double ));
t_freebytes(x->grad, x->voice_count * sizeof(t_double ));
t_freebytes(x->ball_loc, x->voice_count * sizeof(t_double ));
t_freebytes(x->shape, x->voice_count * sizeof(t_double ));
t_freebytes(x->crash, x->voice_count * sizeof(t_double ));
t_freebytes(x->lastcrash, x->voice_count * sizeof(t_double ));
t_freebytes(x->direction, x->voice_count * sizeof(t_int ));
t_freebytes(x->hz_conn, x->voice_count * sizeof(t_int ));
t_freebytes(x->symm_conn, x->voice_count * sizeof(t_int ));
t_freebytes(x->dcblock_on, x->voice_count * sizeof(t_int ));
t_freebytes(x->dc_prev_in, x->voice_count * sizeof(t_double ));
t_freebytes(x->dc_prev_out, x->voice_count * sizeof(t_double ));
t_freebytes(x->sin, LKTBL_LNGTH * sizeof(t_double ));
t_freebytes(x->sinh, LKTBL_LNGTH * sizeof(t_double ));
t_freebytes(x->isfree, x->voice_count * sizeof(t_bool ));
}
示例2: uwemsp_free
void uwemsp_free(t_uwemsp *x)
{
dsp_free((t_pxobject *)x); // needs to be called for MSP objects on free
// delete our array of signal pointers
sysmem_freeptr(x->u_buffers);
}
示例3: hoa_rotate_free
void hoa_rotate_free(t_hoa_rotate *x)
{
dsp_free((t_pxobject *)x);
delete x->f_rotate;
delete [] x->f_ins;
delete [] x->f_outs;
}
示例4: hoa_vector_free
void hoa_vector_free(t_hoa_vector *x)
{
dsp_free((t_pxobject *)x);
delete x->f_vector;
delete [] x->f_sig_ins;
delete [] x->f_sig_outs;
}
示例5: hoa_optim_free
void hoa_optim_free(t_hoa_optim *x)
{
dsp_free((t_pxobject *)x);
delete x->f_optim;
delete [] x->f_ins;
delete [] x->f_outs;
}
示例6: bthresher_free
void bthresher_free( t_bthresher *x ){
#if MSP
dsp_free( (t_pxobject *) x);
#endif
freebytes(x->Wanal,0);
freebytes(x->Wsyn,0);
freebytes(x->Hwin,0);
freebytes(x->buffer,0);
freebytes(x->channel,0);
freebytes(x->input,0);
freebytes(x->output,0);
freebytes(x->trigland,0);
freebytes(x->bitshuffle,0);
/* full phase vocoder */
freebytes(x->c_lastphase_in,0);
freebytes(x->c_lastphase_out,0);
/* external-specific memory */
freebytes(x->composite_frame,0);
freebytes(x->frames_left,0);
freebytes(x->move_threshold,0);
freebytes(x->damping_factor,0);
freebytes(x->list_data,0);
}
示例7: op_free
// Memory Deallocation
void op_free(t_op *x)
{
dsp_free((t_pxobject *)x);
TTObjectBaseRelease(&x->op);
TTObjectBaseRelease(&x->audioIn);
TTObjectBaseRelease(&x->audioOut);
}
示例8: wlet_free
void wlet_free(t_wlet *x)
{
dsp_free((t_pxobject *)x);
free(x->w_tmp);
gsl_wavelet_free(x->w_wavelet);
gsl_wavelet_workspace_free(x->w_workspace);
}
示例9: gendy_free
void gendy_free(t_gendy *x){
dsp_free((t_pxobject *)x);
sysmem_freeptr(x->mMemoryAmp);
sysmem_freeptr(x->mMemoryDur);
}
示例10: zerox_free
// Destroy
void zerox_free(t_zerox *x)
{
dsp_free((t_pxobject *)x);
TTObjectBaseRelease(&x->zeroxUnit);
TTObjectBaseRelease(&x->signalIn);
TTObjectBaseRelease(&x->signalOut);
}
示例11: balance_free
// Memory Deallocation
void balance_free(t_balance *x)
{
dsp_free((t_pxobject *)x);
TTObjectRelease(&x->balance);
TTObjectRelease(&x->audioIn);
TTObjectRelease(&x->audioOut);
}
示例12: allpassmod_free
// Destroy
void allpassmod_free(t_allpassmod *x)
{
dsp_free((t_pxobject *)x);
TTValue none;
TTAddress address;
address = x->name.appendAddress("/model");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/coefficient");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/delay");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/clear");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/in.left");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/in.right");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/out.left");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/out.right");
MaxApplication.send("ObjectUnregister", address, none);
address = x->name.appendAddress("/preset");
MaxApplication.send("ObjectUnregister", address, none);
}
示例13: bounce_dsp_free
void bounce_dsp_free (t_bounce *x)
{
int i;
dsp_free((t_pxobject *)x);
t_freebytes(x->hz, x->voice_count * sizeof(t_double *));
t_freebytes(x->out, x->voice_count * sizeof(t_double *));
t_freebytes(x->symm, x->voice_count * sizeof(t_double *));
t_freebytes(x->hzFloat, x->voice_count * sizeof(t_double ));
t_freebytes(x->grad, x->voice_count * sizeof(t_double ));
t_freebytes(x->ball_loc, x->voice_count * sizeof(t_double ));
t_freebytes(x->shape, x->voice_count * sizeof(t_double ));
t_freebytes(x->direction, x->voice_count * sizeof(t_int ));
t_freebytes(x->hz_conn, x->voice_count * sizeof(t_int ));
t_freebytes(x->symm_conn, x->voice_count * sizeof(t_int ));
t_freebytes(x->dcblock_on, x->voice_count * sizeof(t_int ));
t_freebytes(x->dc_prev_in, x->voice_count * sizeof(t_double ));
t_freebytes(x->dc_prev_out, x->voice_count * sizeof(t_double ));
t_freebytes(x->sin, LKTBL_LNGTH * sizeof(t_double ));
t_freebytes(x->sinh, LKTBL_LNGTH * sizeof(t_double ));
for (i =0; i < x->voice_count; i++){
t_freebytes(x->fm[i], x->voice_count * sizeof(t_double));
}
t_freebytes(x->fm, x->voice_count * sizeof(t_double *));
}
示例14: multigrain_dsp_free
void multigrain_dsp_free(t_multigrain *x)
{
dsp_free((t_pxobject *)x);
t_freebytes(x->grains, MAXGRAINS * sizeof(t_grain));
t_freebytes(x->pitchscale, MAXSCALE * sizeof(float));
t_freebytes(x->changroup, x->output_channels * sizeof(long));
}
示例15: hoa_3d_decoder_free
void hoa_3d_decoder_free(t_hoa_3d_decoder *x)
{
dsp_free((t_pxobject *)x);
delete [] x->f_ins;
delete [] x->f_outs;
delete [] x->f_ins_bin;
}