Changes in / [dea34a1:85ebab8]
- Location:
- src/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.c
rdea34a1 r85ebab8 72 72 } 73 73 74 uint_t aubio_source_get_samplerate(aubio_source_t * s) { 75 #ifdef __APPLE__ 76 return aubio_source_apple_audio_get_samplerate((aubio_source_apple_audio_t *)s->source); 77 #else /* __APPLE__ */ 78 #if HAVE_SNDFILE 79 return aubio_source_sndfile_get_samplerate((aubio_source_sndfile_t *)s->source); 80 #endif /* HAVE_SNDFILE */ 81 #endif /* __APPLE__ */ 82 } 83 -
src/io/source.h
rdea34a1 r85ebab8 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.c
rdea34a1 r85ebab8 90 90 if (err) { AUBIO_ERROR("error in ExtAudioFileGetProperty, %d\n", (int)err); goto beach;} 91 91 92 if (s->samplerate == 1) { 93 clientFormat.mSampleRate = fileFormat.mSampleRate; 94 s->samplerate = fileFormat.mSampleRate; 95 } 96 92 97 // set the client format description 93 98 err = ExtAudioFileSetProperty(s->audioFile, kExtAudioFileProperty_ClientDataFormat, … … 176 181 } 177 182 183 uint_t aubio_source_apple_audio_get_samplerate(aubio_source_apple_audio_t * s) { 184 return s->samplerate; 185 } 186 178 187 #endif /* __APPLE__ */ -
src/io/source_apple_audio.h
rdea34a1 r85ebab8 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
Note: See TracChangeset
for help on using the changeset viewer.