Changeset 943ef49 for src


Ignore:
Timestamp:
Nov 28, 2016, 2:50:46 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
a69e7aa
Parents:
5382846
Message:

src/synth/sampler.h: add _{get,set}_perfectloop

Location:
src/synth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/synth/sampler.c

    r5382846 r943ef49  
    786786}
    787787
     788uint_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
     794uint_t aubio_sampler_get_perfectloop (aubio_sampler_t *s) {
     795  if (!s) return AUBIO_FAIL;
     796  return s->perfectloop;
     797}
     798
    788799void del_aubio_sampler( aubio_sampler_t * o )
    789800{
  • src/synth/sampler.h

    r5382846 r943ef49  
    221221uint_t aubio_sampler_get_waited_opening(aubio_sampler_t * o, uint_t waited);
    222222
     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*/
     231uint_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 */
     241uint_t aubio_sampler_set_perfectloop (aubio_sampler_t *o, uint_t perfectloop);
     242
    223243/** seek to position
    224244
Note: See TracChangeset for help on using the changeset viewer.