Changes in / [6e765ed:985d5c4]


Ignore:
Location:
src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.c

    r6e765ed r985d5c4  
    4141typedef uint_t (*aubio_source_get_samplerate_t)(aubio_source_t * s);
    4242typedef uint_t (*aubio_source_get_channels_t)(aubio_source_t * s);
    43 typedef uint_t (*aubio_source_get_duration_t)(aubio_source_t * s);
    4443typedef uint_t (*aubio_source_seek_t)(aubio_source_t * s, uint_t seek);
    4544typedef uint_t (*aubio_source_close_t)(aubio_source_t * s);
     
    5251  aubio_source_get_samplerate_t s_get_samplerate;
    5352  aubio_source_get_channels_t s_get_channels;
    54   aubio_source_get_duration_t s_get_duration;
    5553  aubio_source_seek_t s_seek;
    5654  aubio_source_close_t s_close;
     
    6765    s->s_get_channels = (aubio_source_get_channels_t)(aubio_source_avcodec_get_channels);
    6866    s->s_get_samplerate = (aubio_source_get_samplerate_t)(aubio_source_avcodec_get_samplerate);
    69     s->s_get_duration = (aubio_source_get_duration_t)(aubio_source_avcodec_get_duration);
    7067    s->s_seek = (aubio_source_seek_t)(aubio_source_avcodec_seek);
    7168    s->s_close = (aubio_source_close_t)(aubio_source_avcodec_close);
     
    8178    s->s_get_channels = (aubio_source_get_channels_t)(aubio_source_apple_audio_get_channels);
    8279    s->s_get_samplerate = (aubio_source_get_samplerate_t)(aubio_source_apple_audio_get_samplerate);
    83     s->s_get_duration = (aubio_source_get_duration_t)(aubio_source_apple_audio_get_duration);
    8480    s->s_seek = (aubio_source_seek_t)(aubio_source_apple_audio_seek);
    8581    s->s_close = (aubio_source_close_t)(aubio_source_apple_audio_close);
     
    9591    s->s_get_channels = (aubio_source_get_channels_t)(aubio_source_sndfile_get_channels);
    9692    s->s_get_samplerate = (aubio_source_get_samplerate_t)(aubio_source_sndfile_get_samplerate);
    97     s->s_get_duration = (aubio_source_get_duration_t)(aubio_source_sndfile_get_duration);
    9893    s->s_seek = (aubio_source_seek_t)(aubio_source_sndfile_seek);
    9994    s->s_close = (aubio_source_close_t)(aubio_source_sndfile_close);
     
    109104    s->s_get_channels = (aubio_source_get_channels_t)(aubio_source_wavread_get_channels);
    110105    s->s_get_samplerate = (aubio_source_get_samplerate_t)(aubio_source_wavread_get_samplerate);
    111     s->s_get_duration = (aubio_source_get_duration_t)(aubio_source_wavread_get_duration);
    112106    s->s_seek = (aubio_source_seek_t)(aubio_source_wavread_seek);
    113107    s->s_close = (aubio_source_close_t)(aubio_source_wavread_close);
     
    148142}
    149143
    150 uint_t aubio_source_get_duration(aubio_source_t *s) {
    151   return s->s_get_duration((void *)s->source);
    152 }
    153 
    154144uint_t aubio_source_seek (aubio_source_t * s, uint_t seek ) {
    155145  return s->s_seek((void *)s->source, seek);
  • src/io/source.h

    r6e765ed r985d5c4  
    150150/**
    151151
    152   get the duration of source object, in frames
    153 
    154   \param s source object, created with ::new_aubio_source
    155   \return number of frames in file
    156 
    157 */
    158 uint_t aubio_source_get_duration (aubio_source_t * s);
    159 
    160 /**
    161 
    162152  close source object
    163153
Note: See TracChangeset for help on using the changeset viewer.