- Timestamp:
- Nov 28, 2016, 2:50:46 PM (8 years ago)
- Branches:
- sampler
- Children:
- a69e7aa
- Parents:
- 5382846
- Location:
- src/synth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/synth/sampler.c
r5382846 r943ef49 786 786 } 787 787 788 uint_t aubio_sampler_set_perfectloop (aubio_sampler_t *s, uint_t perfectloop) { 789 if (!s) return AUBIO_FAIL; 790 s->perfectloop = perfectloop; 791 return AUBIO_OK; 792 } 793 794 uint_t aubio_sampler_get_perfectloop (aubio_sampler_t *s) { 795 if (!s) return AUBIO_FAIL; 796 return s->perfectloop; 797 } 798 788 799 void del_aubio_sampler( aubio_sampler_t * o ) 789 800 { -
src/synth/sampler.h
r5382846 r943ef49 221 221 uint_t aubio_sampler_get_waited_opening(aubio_sampler_t * o, uint_t waited); 222 222 223 /** get the current perfect loop mode 224 225 \param o sampler, created by new_aubio_sampler() 226 227 \return the total delay in samples when the file was successfuly opened, 0 228 otherwise 229 230 */ 231 uint_t aubio_sampler_get_perfectloop (aubio_sampler_t *o); 232 233 /** set the perfect loop mode 234 235 \param o sampler, created by new_aubio_sampler() 236 \param perfectloop 1 to set perfect loop mode, 0 to turn it of 237 238 \return AUBIO_OK on success, AUBIO_FAIL otherwise 239 240 */ 241 uint_t aubio_sampler_set_perfectloop (aubio_sampler_t *o, uint_t perfectloop); 242 223 243 /** seek to position 224 244
Note: See TracChangeset
for help on using the changeset viewer.