您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ AUBIO_FREE函数代码示例

51自学网 2021-06-01 19:38:42
  C++
这篇教程C++ AUBIO_FREE函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中AUBIO_FREE函数的典型用法代码示例。如果您正苦于以下问题:C++ AUBIO_FREE函数的具体用法?C++ AUBIO_FREE怎么用?C++ AUBIO_FREE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了AUBIO_FREE函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: del_aubio_resampler

voiddel_aubio_resampler (aubio_resampler_t * s){  if (s->stat) src_delete (s->stat);  AUBIO_FREE (s->proc);  AUBIO_FREE (s);}
开发者ID:Bun-chan,项目名称:iPhone-Julius-Test,代码行数:7,


示例2: del_aubio_sink_sndfile

void del_aubio_sink_sndfile(aubio_sink_sndfile_t * s){  if (!s) return;  if (s->path) AUBIO_FREE(s->path);  aubio_sink_sndfile_close(s);  AUBIO_FREE(s->scratch_data);  AUBIO_FREE(s);}
开发者ID:XunjunYin,项目名称:aubio,代码行数:7,


示例3: del_fmat

void del_fmat (fmat_t *s) {  uint_t i;  for (i=0; i<s->height; i++) {    AUBIO_FREE(s->data[i]);  }  AUBIO_FREE(s->data);  AUBIO_FREE(s);}
开发者ID:Craig-J,项目名称:RhythMIR,代码行数:8,


示例4: aubio_jack_free

static uint_t aubio_jack_free(aubio_jack_t * jack_setup) {  AUBIO_FREE(jack_setup->oports);  AUBIO_FREE(jack_setup->iports);  AUBIO_FREE(jack_setup->ibufs );  AUBIO_FREE(jack_setup->obufs );  AUBIO_FREE(jack_setup);  return AUBIO_OK;}
开发者ID:TOTOleHero,项目名称:audio2midi,代码行数:8,


示例5: del_aubio_pvoc

void del_aubio_pvoc(aubio_pvoc_t *pv) {	del_fvec(pv->data);	del_fvec(pv->synth);	del_fvec(pv->dataold);	del_fvec(pv->synthold);	del_aubio_mfft(pv->fft);	AUBIO_FREE(pv->w);	AUBIO_FREE(pv);}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:9,


示例6: del_aubio_track

/** del_aubio_track */int del_aubio_track(aubio_track_t* track){  if (track->name != NULL) {    AUBIO_FREE(track->name);  }  if (track->first != NULL) {    del_aubio_midi_event(track->first);  }  AUBIO_FREE(track);  return AUBIO_OK;}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:12,


示例7: del_aubio_fft

void del_aubio_fft(aubio_fft_t * s) {  /* destroy data */  del_fvec(s->compspec);#ifdef HAVE_FFTW3  fftw_destroy_plan(s->pfw);  fftw_destroy_plan(s->pbw);  fftw_free(s->specdata);#else /* HAVE_FFTW3 */  AUBIO_FREE(s->w);  AUBIO_FREE(s->ip);#endif /* HAVE_FFTW3 */  AUBIO_FREE(s->out);  AUBIO_FREE(s->in);  AUBIO_FREE(s);}
开发者ID:apanly,项目名称:hackprinceton13,代码行数:15,


示例8: del_aubio_list1

voiddel_aubio_list1(aubio_list_t *list){  if (list) {    AUBIO_FREE(list);  }}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:7,


示例9: AUBIO_NEW

aubio_wavetable_t *new_aubio_wavetable(uint_t samplerate, uint_t blocksize){    uint_t i = 0;    aubio_wavetable_t *s = AUBIO_NEW(aubio_wavetable_t);    if ((sint_t)samplerate <= 0) {        AUBIO_ERR("Can not create wavetable with samplerate %d/n", samplerate);        goto beach;    }    s->samplerate = samplerate;    s->blocksize = blocksize;    s->wavetable_length = WAVETABLE_LEN;    s->wavetable = new_fvec(s->wavetable_length + 3);    for (i = 0; i < s->wavetable_length; i++) {        s->wavetable->data[i] = SIN(TWO_PI * i / (smpl_t) s->wavetable_length );    }    s->wavetable->data[s->wavetable_length] = s->wavetable->data[0];    s->wavetable->data[s->wavetable_length + 1] = s->wavetable->data[1];    s->wavetable->data[s->wavetable_length + 2] = s->wavetable->data[2];    s->playing = 0;    s->last_pos = 0.;    s->freq = new_aubio_parameter( 0., s->samplerate / 2., 10 );    s->amp = new_aubio_parameter( 0., 1., 100 );    return s;beach:    AUBIO_FREE(s);    return NULL;}
开发者ID:Craig-J,项目名称:RhythMIR,代码行数:27,


示例10: new_aubio_filterbank

aubio_filterbank_t *new_aubio_filterbank (uint_t n_filters, uint_t win_s){  /* allocate space for filterbank object */  aubio_filterbank_t *fb = AUBIO_NEW (aubio_filterbank_t);  if ((sint_t)n_filters <= 0) {    AUBIO_ERR("filterbank: n_filters should be > 0, got %d/n", n_filters);    goto fail;  }  if ((sint_t)win_s <= 0) {    AUBIO_ERR("filterbank: win_s should be > 0, got %d/n", win_s);    goto fail;  }  fb->win_s = win_s;  fb->n_filters = n_filters;  /* allocate filter tables, a matrix of length win_s and of height n_filters */  fb->filters = new_fmat (n_filters, win_s / 2 + 1);  fb->norm = 1;  fb->power = 1;  return fb;fail:  AUBIO_FREE (fb);  return NULL;}
开发者ID:aubio,项目名称:aubio,代码行数:29,


示例11: del_aubio_source_avcodec

void del_aubio_source_avcodec(aubio_source_avcodec_t * s){  if (!s) return;  if (s->output != NULL) {    av_free(s->output);  }  if (s->avr != NULL) {    avresample_close( s->avr );    av_free ( s->avr );  }  s->avr = NULL;  if (s->avFrame != NULL) {    avcodec_free_frame( &(s->avFrame) );  }  s->avFrame = NULL;  if (s->avCodecCtx != NULL) {    avcodec_close ( s->avCodecCtx );  }  s->avCodecCtx = NULL;  if (s->avFormatCtx != NULL) {    avformat_close_input ( &(s->avFormatCtx) );  }  s->avFrame = NULL;  s->avFormatCtx = NULL;  AUBIO_FREE(s);}
开发者ID:famulus,项目名称:aubio,代码行数:25,


示例12: del_aubio_wavetable

void del_aubio_wavetable( aubio_wavetable_t * s ){    del_aubio_parameter(s->freq);    del_aubio_parameter(s->amp);    del_fvec(s->wavetable);    AUBIO_FREE(s);}
开发者ID:Craig-J,项目名称:RhythMIR,代码行数:7,


示例13: new_aubio_sink_sndfile

aubio_sink_sndfile_t * new_aubio_sink_sndfile(const char_t * path, uint_t samplerate) {  aubio_sink_sndfile_t * s = AUBIO_NEW(aubio_sink_sndfile_t);  s->max_size = MAX_SIZE;  if (path == NULL) {    AUBIO_ERR("sink_sndfile: Aborted opening null path/n");    return NULL;  }  if (s->path) AUBIO_FREE(s->path);  s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1);  strncpy(s->path, path, strnlen(path, PATH_MAX) + 1);  s->samplerate = 0;  s->channels = 0;  // negative samplerate given, abort  if ((sint_t)samplerate < 0) goto beach;  // zero samplerate given. do not open yet  if ((sint_t)samplerate == 0) return s;  s->samplerate = samplerate;  s->channels = 1;  if (aubio_sink_sndfile_open(s) != AUBIO_OK) {;    goto beach;  }  return s;beach:  del_aubio_sink_sndfile(s);  return NULL;}
开发者ID:XunjunYin,项目名称:aubio,代码行数:33,


示例14: del_aubio_pitchmcomb

voiddel_aubio_pitchmcomb (aubio_pitchmcomb_t * p){  uint_t i;  del_fvec (p->newmag);  del_fvec (p->scratch);  del_fvec (p->theta);  del_fvec (p->scratch2);  AUBIO_FREE (p->peaks);  for (i = 0; i < p->ncand; i++) {    AUBIO_FREE (p->candidates[i]->ecomb);    AUBIO_FREE (p->candidates[i]);  }  AUBIO_FREE (p->candidates);  AUBIO_FREE (p);}
开发者ID:Aicitel,项目名称:android-education-project,代码行数:16,


示例15: del_aubio_alsa_seq_driver

/** del_aubio_alsa_seq_driver */int del_aubio_alsa_seq_driver(aubio_midi_driver_t* p){    aubio_alsa_seq_driver_t* dev;    dev = (aubio_alsa_seq_driver_t*) p;    if (dev == NULL) {        return AUBIO_OK;    }    dev->status = AUBIO_MIDI_DONE;    /* cancel the thread and wait for it before cleaning up */    if (dev->thread) {        if (pthread_cancel(dev->thread)) {            AUBIO_ERR( "Failed to cancel the midi thread");            return AUBIO_FAIL;        }        if (pthread_join(dev->thread, NULL)) {            AUBIO_ERR( "Failed to join the midi thread");            return AUBIO_FAIL;        }    }    if (dev->seq_port >= 0) {        snd_seq_delete_simple_port (dev->seq_handle, dev->seq_port);    }    if (dev->seq_handle) {        snd_seq_drain_output(dev->seq_handle);        snd_seq_close(dev->seq_handle);    }    AUBIO_FREE(dev);    return AUBIO_OK;}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:33,


示例16: del_aubio_pitch

voiddel_aubio_pitch (aubio_pitch_t * p){  switch (p->type) {    case aubio_pitcht_yin:      del_fvec (p->buf);      del_aubio_pitchyin (p->p_object);      break;    case aubio_pitcht_mcomb:      del_aubio_pvoc (p->pv);      del_cvec (p->fftgrain);      del_aubio_filter (p->filter);      del_aubio_pitchmcomb (p->p_object);      break;    case aubio_pitcht_schmitt:      del_fvec (p->buf);      del_aubio_pitchschmitt (p->p_object);      break;    case aubio_pitcht_fcomb:      del_fvec (p->buf);      del_aubio_pitchfcomb (p->p_object);      break;    case aubio_pitcht_yinfft:      del_fvec (p->buf);      del_aubio_pitchyinfft (p->p_object);      break;    case aubio_pitcht_specacf:      del_fvec (p->buf);      del_aubio_pitchspecacf (p->p_object);      break;    default:      break;  }  AUBIO_FREE (p);}
开发者ID:EQ4,项目名称:aubio-mod,代码行数:35,


示例17: del_aubio_sampler

void del_aubio_sampler( aubio_sampler_t * o ){  if (o->source) {    del_aubio_source(o->source);  }  del_fvec(o->source_output);  del_fmat(o->source_output_multi);  AUBIO_FREE(o);}
开发者ID:iKala,项目名称:aubio,代码行数:9,


示例18: del_aubio_tss

void del_aubio_tss(aubio_tss_t *s){  del_fvec(s->theta1);  del_fvec(s->theta2);  del_fvec(s->oft1);  del_fvec(s->oft2);  del_fvec(s->dev);  AUBIO_FREE(s);}
开发者ID:daphne-yu,项目名称:aubio,代码行数:9,


示例19: del_aubio_onset

void del_aubio_onset (aubio_onset_t *o){  del_aubio_specdesc(o->od);  del_aubio_peakpicker(o->pp);  del_aubio_pvoc(o->pv);  del_fvec(o->desc);  del_cvec(o->fftgrain);  AUBIO_FREE(o);}
开发者ID:Bun-chan,项目名称:iPhone-Julius-Test,代码行数:9,


示例20: del_aubio_notes

void del_aubio_notes (aubio_notes_t *o) {  if (o->note_buffer) del_fvec(o->note_buffer);  if (o->note_buffer2) del_fvec(o->note_buffer2);  if (o->pitch_output) del_fvec(o->pitch_output);  if (o->pitch) del_aubio_pitch(o->pitch);  if (o->onset_output) del_fvec(o->onset_output);  if (o->onset) del_aubio_onset(o->onset);  AUBIO_FREE(o);}
开发者ID:anthonylauzon,项目名称:aubio,代码行数:9,


示例21: del_aubio_pitchspecacf

voiddel_aubio_pitchspecacf (aubio_pitchspecacf_t * p){    del_fvec (p->win);    del_fvec (p->winput);    del_aubio_fft (p->fft);    del_fvec (p->sqrmag);    del_fvec (p->fftout);    AUBIO_FREE (p);}
开发者ID:XunjunYin,项目名称:aubio,代码行数:10,


示例22: del_aubio_pitchfcomb

voiddel_aubio_pitchfcomb (aubio_pitchfcomb_t * p){    del_cvec (p->fftOut);    del_fvec (p->fftLastPhase);    del_fvec (p->win);    del_fvec (p->winput);    del_aubio_fft (p->fft);    AUBIO_FREE (p);}
开发者ID:XunjunYin,项目名称:aubio,代码行数:10,


示例23: del_aubio_list

voiddel_aubio_list(aubio_list_t *list){  aubio_list_t *next;  while (list) {    next = list->next;    AUBIO_FREE(list);    list = next;  }}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:10,


示例24: del_aubio_filter

voiddel_aubio_filter (aubio_filter_t * f){  del_lvec (f->a);  del_lvec (f->b);  del_lvec (f->x);  del_lvec (f->y);  AUBIO_FREE (f);  return;}
开发者ID:Aicitel,项目名称:android-education-project,代码行数:10,


示例25: del_aubio_source_apple_audio

void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s){  OSStatus err = noErr;  if (!s || !s->audioFile) { return; }  err = ExtAudioFileDispose(s->audioFile);  if (err) AUBIO_ERROR("error in ExtAudioFileDispose, %d/n", (int)err);  s->audioFile = NULL;  freeAudioBufferList(&s->bufferList);  AUBIO_FREE(s);  return;}
开发者ID:apanly,项目名称:hackprinceton13,代码行数:10,


示例26: del_aubio_source

void del_aubio_source(aubio_source_t * s) {  if (!s) return;#ifdef __APPLE__  del_aubio_source_apple_audio((aubio_source_apple_audio_t *)s->source);#else /* __APPLE__ */#if HAVE_SNDFILE  del_aubio_source_sndfile((aubio_source_sndfile_t *)s->source);#endif /* HAVE_SNDFILE */#endif /* __APPLE__ */  AUBIO_FREE(s);}
开发者ID:apanly,项目名称:hackprinceton13,代码行数:11,


示例27: freeAudioBufferList

void freeAudioBufferList(AudioBufferList *bufferList) {  UInt32 i = 0;  if (!bufferList) return;  for (i = 0; i < bufferList->mNumberBuffers; i++) {    if (bufferList->mBuffers[i].mData) {      AUBIO_FREE(bufferList->mBuffers[i].mData);      bufferList->mBuffers[i].mData = NULL;    }  }  bufferList = NULL;}
开发者ID:Objzilla,项目名称:aubio,代码行数:11,


示例28: del_aubio_midi_event

/** del_aubio_midi_event */int del_aubio_midi_event(aubio_midi_event_t* evt){  aubio_midi_event_t *temp;  while(evt)  {    temp = evt->next;    AUBIO_FREE(evt);    evt = temp;  }  return AUBIO_OK;}
开发者ID:BYVoid,项目名称:notes_extract,代码行数:12,


示例29: del_aubio_pitchyinfft

voiddel_aubio_pitchyinfft (aubio_pitchyinfft_t * p){  del_fvec (p->win);  del_aubio_fft (p->fft);  del_fvec (p->yinfft);  del_fvec (p->sqrmag);  del_fvec (p->fftout);  del_fvec (p->winput);  del_fvec (p->weight);  AUBIO_FREE (p);}
开发者ID:Craig-J,项目名称:RhythMIR,代码行数:12,


示例30: new_aubio_sink

aubio_sink_t * new_aubio_sink(const char_t * uri, uint_t samplerate) {  aubio_sink_t * s = AUBIO_NEW(aubio_sink_t);#ifdef HAVE_SINK_APPLE_AUDIO  s->sink = (void *)new_aubio_sink_apple_audio(uri, samplerate);  if (s->sink) {    s->s_do = (aubio_sink_do_t)(aubio_sink_apple_audio_do);    s->s_do_multi = (aubio_sink_do_multi_t)(aubio_sink_apple_audio_do_multi);    s->s_preset_samplerate = (aubio_sink_preset_samplerate_t)(aubio_sink_apple_audio_preset_samplerate);    s->s_preset_channels = (aubio_sink_preset_channels_t)(aubio_sink_apple_audio_preset_channels);    s->s_get_samplerate = (aubio_sink_get_samplerate_t)(aubio_sink_apple_audio_get_samplerate);    s->s_get_channels = (aubio_sink_get_channels_t)(aubio_sink_apple_audio_get_channels);    s->s_close = (aubio_sink_close_t)(aubio_sink_apple_audio_close);    s->s_del = (del_aubio_sink_t)(del_aubio_sink_apple_audio);    return s;  }#endif /* HAVE_SINK_APPLE_AUDIO */#ifdef HAVE_SNDFILE  s->sink = (void *)new_aubio_sink_sndfile(uri, samplerate);  if (s->sink) {    s->s_do = (aubio_sink_do_t)(aubio_sink_sndfile_do);    s->s_do_multi = (aubio_sink_do_multi_t)(aubio_sink_sndfile_do_multi);    s->s_preset_samplerate = (aubio_sink_preset_samplerate_t)(aubio_sink_sndfile_preset_samplerate);    s->s_preset_channels = (aubio_sink_preset_channels_t)(aubio_sink_sndfile_preset_channels);    s->s_get_samplerate = (aubio_sink_get_samplerate_t)(aubio_sink_sndfile_get_samplerate);    s->s_get_channels = (aubio_sink_get_channels_t)(aubio_sink_sndfile_get_channels);    s->s_close = (aubio_sink_close_t)(aubio_sink_sndfile_close);    s->s_del = (del_aubio_sink_t)(del_aubio_sink_sndfile);    return s;  }#endif /* HAVE_SNDFILE */#ifdef HAVE_WAVWRITE  s->sink = (void *)new_aubio_sink_wavwrite(uri, samplerate);  if (s->sink) {    s->s_do = (aubio_sink_do_t)(aubio_sink_wavwrite_do);    s->s_do_multi = (aubio_sink_do_multi_t)(aubio_sink_wavwrite_do_multi);    s->s_preset_samplerate = (aubio_sink_preset_samplerate_t)(aubio_sink_wavwrite_preset_samplerate);    s->s_preset_channels = (aubio_sink_preset_channels_t)(aubio_sink_wavwrite_preset_channels);    s->s_get_samplerate = (aubio_sink_get_samplerate_t)(aubio_sink_wavwrite_get_samplerate);    s->s_get_channels = (aubio_sink_get_channels_t)(aubio_sink_wavwrite_get_channels);    s->s_close = (aubio_sink_close_t)(aubio_sink_wavwrite_close);    s->s_del = (del_aubio_sink_t)(del_aubio_sink_wavwrite);    return s;  }#endif /* HAVE_WAVWRITE */#if !defined(HAVE_WAVWRITE) && /  !defined(HAVE_SNDFILE) && /  !defined(HAVE_SINK_APPLE_AUDIO)  AUBIO_ERROR("sink: failed creating '%s' at %dHz (no sink built-in)/n", uri, samplerate);#endif  AUBIO_FREE(s);  return NULL;}
开发者ID:anthonylauzon,项目名称:aubio,代码行数:52,



注:本文中的AUBIO_FREE函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ AUDDBG函数代码示例
C++ ATmatch函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。