[examples] remove unneeded cast
authorPaul Brossier <piem@piem.org>
Tue, 11 Dec 2018 15:04:36 +0000 (16:04 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 11 Dec 2018 15:04:36 +0000 (16:04 +0100)
examples/aubiomfcc.c
examples/aubionotes.c
examples/aubioonset.c
examples/aubiopitch.c
examples/aubioquiet.c
examples/aubiotrack.c

index 0942ade..f333d63 100644 (file)
@@ -68,7 +68,7 @@ int main(int argc, char **argv) {
     goto beach;
   }
 
     goto beach;
   }
 
-  examples_common_process((aubio_process_func_t)process_block, process_print);
+  examples_common_process(process_block, process_print);
 
   del_aubio_pvoc (pv);
   del_cvec (fftgrain);
 
   del_aubio_pvoc (pv);
   del_cvec (fftgrain);
index 339fdaf..0969774 100644 (file)
@@ -90,7 +90,7 @@ int main(int argc, char **argv) {
     }
   }
 
     }
   }
 
-  examples_common_process((aubio_process_func_t)process_block, process_print);
+  examples_common_process(process_block, process_print);
 
   // send a last note off if required
   if (lastmidi) {
 
   // send a last note off if required
   if (lastmidi) {
index 18b9a61..ca3496b 100644 (file)
@@ -86,7 +86,7 @@ int main(int argc, char **argv) {
   aubio_wavetable_set_freq ( wavetable, 2450.);
   //aubio_sampler_load (sampler, "/archives/sounds/woodblock.aiff");
 
   aubio_wavetable_set_freq ( wavetable, 2450.);
   //aubio_sampler_load (sampler, "/archives/sounds/woodblock.aiff");
 
-  examples_common_process((aubio_process_func_t)process_block, process_print);
+  examples_common_process(process_block, process_print);
 
   // send a last note off
   if (usejack) {
 
   // send a last note off
   if (usejack) {
index 2d7a012..3a3d37e 100644 (file)
@@ -79,7 +79,7 @@ int main(int argc, char **argv) {
   wavetable = new_aubio_wavetable (samplerate, hop_size);
   aubio_wavetable_play ( wavetable );
 
   wavetable = new_aubio_wavetable (samplerate, hop_size);
   aubio_wavetable_play ( wavetable );
 
-  examples_common_process((aubio_process_func_t)process_block,process_print);
+  examples_common_process(process_block, process_print);
 
   del_aubio_pitch (o);
   del_aubio_wavetable (wavetable);
 
   del_aubio_pitch (o);
   del_aubio_wavetable (wavetable);
index f62e1ed..1d7c6d8 100644 (file)
@@ -55,7 +55,7 @@ int main(int argc, char **argv) {
   verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
   verbmsg ("buffer_size: %d, ", buffer_size);
   verbmsg ("hop_size: %d\n", hop_size);
   verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
   verbmsg ("buffer_size: %d, ", buffer_size);
   verbmsg ("hop_size: %d\n", hop_size);
-  examples_common_process((aubio_process_func_t)process_block,process_print);
+  examples_common_process(process_block, process_print);
   examples_common_del();
   return 0;
 }
   examples_common_del();
   return 0;
 }
index d4a1de7..32e8b62 100644 (file)
@@ -87,7 +87,7 @@ int main(int argc, char **argv) {
   aubio_wavetable_set_freq ( wavetable, 2450.);
   //aubio_sampler_load (sampler, "/archives/sounds/woodblock.aiff");
 
   aubio_wavetable_set_freq ( wavetable, 2450.);
   //aubio_sampler_load (sampler, "/archives/sounds/woodblock.aiff");
 
-  examples_common_process((aubio_process_func_t)process_block,process_print);
+  examples_common_process(process_block, process_print);
 
   // send a last note off
   if (usejack) {
 
   // send a last note off
   if (usejack) {