Changes in src/io/source.h [de5d3f1:ac20c85]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.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 source object26 Media source to read blocks of consecutive audio samples from file 27 27 28 28 \example io/test-source.c … … 34 34 #endif 35 35 36 /** source object structure*/36 /** media source object */ 37 37 typedef struct _aubio_source_t aubio_source_t; 38 38 … … 42 42 43 43 \param uri the file path or uri to read from 44 \param samplerate the sample rate to read the file at45 \param hop_size the size of the blocks to read from44 \param samplerate sampling rate to view the fie at 45 \param block_size the size of the blocks to read from 46 46 47 47 Creates a new source object. If `0` is passed as `samplerate`, the sample 48 48 rate of the original file is used. 49 49 50 The samplerate of the current source can be obtained with50 The samplerate of newly created source can be obtained using 51 51 ::aubio_source_get_samplerate. 52 52 53 53 */ 54 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size);54 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t block_size); 55 55 56 56 /** 57 57 58 read monophonic vector of length hop_size from source object58 read monophonic vector of length block_size from source object 59 59 60 60 \param s source object, created with ::new_aubio_source 61 \param read_ data::fvec_t of data to read to62 \param read number of frames actually read61 \param read_to ::fvec_t of data to read to 62 \param read upon returns, equals to number of frames actually read 63 63 64 64 Upon returns, `read` contains the number of frames actually read from the 65 source. ` hop_size` if enough frames could be read, less otherwise.65 source. `block_size` if enough frames could be read, less otherwise. 66 66 67 67 */ 68 void aubio_source_do(aubio_source_t * s, fvec_t * read_ data, uint_t * read);68 void aubio_source_do(aubio_source_t * s, fvec_t * read_to, uint_t * read); 69 69 70 70 /** … … 80 80 /** 81 81 82 destroy source object82 close source and cleanup memory 83 83 84 84 \param s source object, created with ::new_aubio_source
Note: See TracChangeset
for help on using the changeset viewer.