Changeset 7585822
- Timestamp:
- Apr 24, 2016, 7:00:28 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 81984a7
- Parents:
- 8b2aafd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified examples/jackio.c ¶
r8b2aafd r7585822 22 22 #include "config.h" 23 23 24 #if HAVE_JACK24 #ifdef HAVE_JACK 25 25 #include "utils.h" // for aubio_process_func_t 26 26 #include "jackio.h" -
TabularUnified examples/utils.c ¶
r8b2aafd r7585822 73 73 #if HAVE_JACK 74 74 aubio_jack_t *jack_setup; 75 #endif 75 #endif /* HAVE_JACK */ 76 76 77 77 void examples_common_init (int argc, char **argv); … … 115 115 samplerate = aubio_jack_get_samplerate (jack_setup); 116 116 source_uri = "jack"; 117 #endif 117 #endif /* HAVE_JACK */ 118 118 } 119 119 ibuf = new_fvec (hop_size); … … 138 138 if (usejack) { 139 139 140 #if HAVE_JACK140 #ifdef HAVE_JACK 141 141 debug ("Jack activation ...\n"); 142 142 aubio_jack_activate (jack_setup, process_func); … … 144 144 pause (); 145 145 aubio_jack_close (jack_setup); 146 #else 146 #else /* HAVE_JACK */ 147 147 usage (stderr, 1); 148 148 outmsg ("Compiled without jack output, exiting.\n"); 149 #endif 149 #endif /* HAVE_JACK */ 150 150 151 151 } else { … … 182 182 { 183 183 smpl_t mpitch = floor (aubio_freqtomidi (pitch) + .5); 184 #if HAVE_JACK184 #ifdef HAVE_JACK 185 185 jack_midi_event_t ev; 186 186 ev.size = 3; -
TabularUnified src/cvec.c ¶
r8b2aafd r7585822 86 86 return; 87 87 } 88 #if HAVE_MEMCPY_HACKS88 #ifdef HAVE_MEMCPY_HACKS 89 89 memcpy(t->norm, s->norm, t->length * sizeof(smpl_t)); 90 90 memcpy(t->phas, s->phas, t->length * sizeof(smpl_t)); 91 #else 91 #else /* HAVE_MEMCPY_HACKS */ 92 92 uint_t j; 93 93 for (j=0; j< t->length; j++) { … … 95 95 t->phas[j] = s->phas[j]; 96 96 } 97 #endif 97 #endif /* HAVE_MEMCPY_HACKS */ 98 98 } 99 99 … … 106 106 107 107 void cvec_norm_zeros(cvec_t *s) { 108 #if HAVE_MEMCPY_HACKS108 #ifdef HAVE_MEMCPY_HACKS 109 109 memset(s->norm, 0, s->length * sizeof(smpl_t)); 110 #else 110 #else /* HAVE_MEMCPY_HACKS */ 111 111 cvec_norm_set_all (s, 0.); 112 #endif 112 #endif /* HAVE_MEMCPY_HACKS */ 113 113 } 114 114 … … 125 125 126 126 void cvec_phas_zeros(cvec_t *s) { 127 #if HAVE_MEMCPY_HACKS127 #ifdef HAVE_MEMCPY_HACKS 128 128 memset(s->phas, 0, s->length * sizeof(smpl_t)); 129 129 #else -
TabularUnified src/fmat.c ¶
r8b2aafd r7585822 94 94 95 95 void fmat_zeros(fmat_t *s) { 96 #if HAVE_MEMCPY_HACKS96 #ifdef HAVE_MEMCPY_HACKS 97 97 uint_t i; 98 98 for (i=0; i< s->height; i++) { 99 99 memset(s->data[i], 0, s->length * sizeof(smpl_t)); 100 100 } 101 #else 101 #else /* HAVE_MEMCPY_HACKS */ 102 102 fmat_set(s, 0.); 103 #endif 103 #endif /* HAVE_MEMCPY_HACKS */ 104 104 } 105 105 … … 129 129 void fmat_copy(const fmat_t *s, fmat_t *t) { 130 130 uint_t i; 131 #if !HAVE_MEMCPY_HACKS131 #ifndef HAVE_MEMCPY_HACKS 132 132 uint_t j; 133 #endif 133 #endif /* HAVE_MEMCPY_HACKS */ 134 134 if (s->height != t->height) { 135 135 AUBIO_ERR("trying to copy %d rows to %d rows \n", … … 142 142 return; 143 143 } 144 #if HAVE_MEMCPY_HACKS144 #ifdef HAVE_MEMCPY_HACKS 145 145 for (i=0; i< s->height; i++) { 146 146 memcpy(t->data[i], s->data[i], t->length * sizeof(smpl_t)); 147 147 } 148 #else 148 #else /* HAVE_MEMCPY_HACKS */ 149 149 for (i=0; i< t->height; i++) { 150 150 for (j=0; j< t->length; j++) { … … 152 152 } 153 153 } 154 #endif 154 #endif /* HAVE_MEMCPY_HACKS */ 155 155 } 156 156 -
TabularUnified src/spectral/phasevoc.c ¶
r8b2aafd r7585822 143 143 smpl_t * dataold = pv->dataold->data; 144 144 smpl_t * datanew = new->data; 145 #if !HAVE_MEMCPY_HACKS145 #ifndef HAVE_MEMCPY_HACKS 146 146 uint_t i; 147 147 for (i = 0; i < pv->end; i++)
Note: See TracChangeset
for help on using the changeset viewer.