Changeset ac20c85 for src/io/sink.h
- Timestamp:
- Mar 18, 2013, 4:32:08 PM (11 years ago)
- 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:
- bb42f65
- Parents:
- de5d3f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink.h
rde5d3f1 rac20c85 1 1 /* 2 Copyright (C) 2012 Paul Brossier <piem@aubio.org>2 Copyright (C) 2012-2013 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 24 24 /** \file 25 25 26 Media sink 26 Media sink to write blocks of consecutive audio samples to file. 27 27 28 28 \example io/test-sink.c … … 34 34 #endif 35 35 36 /** media sink object */ 36 37 typedef struct _aubio_sink_t aubio_sink_t; 38 39 /** 40 41 create new ::aubio_sink_t 42 43 \param uri the file path or uri to write to 44 \param samplerate sample rate to write the file at 45 46 \return newly created ::aubio_sink_t 47 48 Creates a new sink object. 49 50 */ 37 51 aubio_sink_t * new_aubio_sink(char_t * uri, uint_t samplerate); 38 void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t written); 52 53 /** 54 55 write monophonic vector of length hop_size to sink 56 57 \param s sink, created with ::new_aubio_sink 58 \param write_data ::fvec_t samples to write to sink 59 \param write number of frames to write 60 61 */ 62 void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t write); 63 64 /** 65 66 close sink and cleanup memory 67 68 \param s source object, created with ::new_aubio_source 69 70 */ 39 71 void del_aubio_sink(aubio_sink_t * s); 40 72
Note: See TracChangeset
for help on using the changeset viewer.