Changeset 4d75b46 for src/io


Ignore:
Timestamp:
Jul 13, 2012, 9:05:32 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
3504dfe7
Parents:
eae5898
Message:

src/io/sink.*: fix prototypes, draft implementation

Location:
src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    reae5898 r4d75b46  
    3030
    3131aubio_sink_t * new_aubio_sink(char_t * uri, uint_t hop_size, uint_t samplerate) {
    32   return NULL;
     32  aubio_sink_t * s = AUBIO_NEW(aubio_sink_t);
     33  return s;
    3334}
    3435
    35 uint_t aubio_sink_do(aubio_sink_t * s, fvec_t * write_data) {
    36   return 0;
     36void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t * written) {
    3737}
    3838
    3939void del_aubio_sink(aubio_sink_t * s) {
     40  AUBIO_FREE(s);
    4041  return;
    4142}
  • src/io/sink.h

    reae5898 r4d75b46  
    3333
    3434typedef struct _aubio_sink_t aubio_sink_t;
    35 aubio_sink_t * new_aubio_sink(char_t * uri, uint_t hop_size, uint_t samplerate);
    36 uint_t aubio_sink_do(aubio_sink_t * s, fvec_t * write_data);
     35aubio_sink_t * new_aubio_sink(char_t * method, uint_t hop_size, uint_t samplerate);
     36void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t * written);
    3737void del_aubio_sink(aubio_sink_t * s);
    3838
Note: See TracChangeset for help on using the changeset viewer.