Changes in / [fc117d0:88fc249]


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_source.py

    rfc117d0 r88fc249  
    88    print 'usage: %s <inputfile>' % sys.argv[0]
    99    sys.exit(1)
    10   f = source(sys.argv[1], 1, 256)
    11   samplerate = f.get_samplerate()
     10  f = source(sys.argv[1], 8000, 256)
    1211  total_frames, read = 0, 256
    1312  while read:
    1413    vec, read = f()
    1514    total_frames += read
    16   print "read", total_frames / float(samplerate), "seconds from", f.uri
     15  print "read", total_frames / float(f.samplerate), "seconds from", f.uri
  • src/io/source.h

    rfc117d0 r88fc249  
    3535aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size);
    3636void aubio_source_do(aubio_source_t * s, fvec_t * read_data, uint_t * read);
    37 uint_t aubio_source_get_samplerate(aubio_source_t * s);
    3837void del_aubio_source(aubio_source_t * s);
    3938
  • src/io/source_apple_audio.h

    rfc117d0 r88fc249  
    2525aubio_source_apple_audio_t * new_aubio_source_apple_audio(char_t * path, uint_t samplerate, uint_t block_size);
    2626void aubio_source_apple_audio_do(aubio_source_apple_audio_t * s, fvec_t * read_to, uint_t * read);
    27 uint_t aubio_source_apple_audio_get_samplerate(aubio_source_apple_audio_t * s);
    2827void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s);
    2928
  • src/io/source_sndfile.c

    rfc117d0 r88fc249  
    173173}
    174174
    175 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s) {
    176   return s->samplerate;
    177 }
    178 
    179175void del_aubio_source_sndfile(aubio_source_sndfile_t * s){
    180176  if (!s) return;
  • src/io/source_sndfile.h

    rfc117d0 r88fc249  
    2525aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplerate, uint_t block_size);
    2626void aubio_source_sndfile_do(aubio_source_sndfile_t * s, fvec_t * read_to, uint_t * read);
    27 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s);
    2827void del_aubio_source_sndfile(aubio_source_sndfile_t * s);
    2928
Note: See TracChangeset for help on using the changeset viewer.