Changes in / [fc117d0:88fc249]
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_source.py
rfc117d0 r88fc249 8 8 print 'usage: %s <inputfile>' % sys.argv[0] 9 9 sys.exit(1) 10 f = source(sys.argv[1], 1, 256) 11 samplerate = f.get_samplerate() 10 f = source(sys.argv[1], 8000, 256) 12 11 total_frames, read = 0, 256 13 12 while read: 14 13 vec, read = f() 15 14 total_frames += read 16 print "read", total_frames / float( samplerate), "seconds from", f.uri15 print "read", total_frames / float(f.samplerate), "seconds from", f.uri -
src/io/source.h
rfc117d0 r88fc249 35 35 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size); 36 36 void 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);38 37 void del_aubio_source(aubio_source_t * s); 39 38 -
src/io/source_apple_audio.h
rfc117d0 r88fc249 25 25 aubio_source_apple_audio_t * new_aubio_source_apple_audio(char_t * path, uint_t samplerate, uint_t block_size); 26 26 void 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);28 27 void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s); 29 28 -
src/io/source_sndfile.c
rfc117d0 r88fc249 173 173 } 174 174 175 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s) {176 return s->samplerate;177 }178 179 175 void del_aubio_source_sndfile(aubio_source_sndfile_t * s){ 180 176 if (!s) return; -
src/io/source_sndfile.h
rfc117d0 r88fc249 25 25 aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplerate, uint_t block_size); 26 26 void 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);28 27 void del_aubio_source_sndfile(aubio_source_sndfile_t * s); 29 28
Note: See TracChangeset
for help on using the changeset viewer.