[examples] remove unneeded cast
[aubio.git] / examples / aubioonset.c
index 829597f..ca3496b 100644 (file)
@@ -76,7 +76,9 @@ int main(int argc, char **argv) {
   verbmsg ("buffer_size: %d, ", buffer_size);
   verbmsg ("hop_size: %d, ", hop_size);
   verbmsg ("silence: %f, ", aubio_onset_get_silence(o));
-  verbmsg ("threshold: %f\n", aubio_onset_get_threshold(o));
+  verbmsg ("threshold: %f, ", aubio_onset_get_threshold(o));
+  verbmsg ("awhitening: %f, ", aubio_onset_get_awhitening(o));
+  verbmsg ("compression: %f\n", aubio_onset_get_compression(o));
 
   onset = new_fvec (1);
 
@@ -84,7 +86,7 @@ int main(int argc, char **argv) {
   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) {