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