Changeset d389e23


Ignore:
Timestamp:
Dec 31, 2013, 12:06:20 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
029bf4e
Parents:
2b43a9e
Message:

examples/: build with -Wmissing-declarations

Location:
examples
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r2b43a9e rd389e23  
    3030uint_t n_coefs = 13;
    3131
    32 static void
    33 process_block(fvec_t *ibuf, fvec_t *obuf) {
     32void process_block (fvec_t *ibuf, fvec_t *obuf)
     33{
    3434  fvec_zeros(obuf);
    3535  //compute mag spectrum
     
    3939}
    4040
    41 static void process_print (void) {
     41void process_print (void)
     42{
    4243  /* output times in seconds and extracted mfccs */
    4344  outmsg("%f\t",blocks*hop_size/(float)samplerate);
  • examples/aubionotes.c

    r2b43a9e rd389e23  
    4646uint_t get_note (fvec_t * note_buffer, fvec_t * note_buffer2);
    4747
    48 static void
    49 process_block(fvec_t *ibuf, fvec_t *obuf) {
     48void process_block (fvec_t *ibuf, fvec_t *obuf)
     49{
    5050  fvec_zeros(obuf);
    5151  aubio_onset_do(o, ibuf, onset);
     
    9595}
    9696
    97 static void
    98 process_print (void) {
     97void process_print (void)
     98{
    9999  //if (verbose) outmsg("%f\n",pitch_obuf->data[0]);
    100100}
  • examples/aubioonset.c

    r2b43a9e rd389e23  
    3030smpl_t is_onset;
    3131
    32 void
    33 process_block(fvec_t *ibuf, fvec_t *obuf) {
     32void process_block(fvec_t *ibuf, fvec_t *obuf)
     33{
    3434  aubio_onset_do (o, ibuf, onset);
    3535  is_onset = fvec_get_sample(onset, 0);
     
    4747}
    4848
    49 void
    50 process_print (void)
     49void process_print (void)
    5150{
    5251  if ( is_onset ) {
  • examples/aubiopitch.c

    r2b43a9e rd389e23  
    2929fvec_t *pitch;
    3030
    31 void
    32 process_block(fvec_t * ibuf, fvec_t * obuf) {
     31void process_block(fvec_t * ibuf, fvec_t * obuf)
     32{
    3333  aubio_pitch_do (o, ibuf, pitch);
    3434  if ( !usejack && ! sink_uri ) return;
     
    4343}
    4444
    45 void
    46 process_print (void) {
     45void process_print (void)
     46{
    4747  smpl_t pitch_found = fvec_get_sample(pitch, 0);
    4848  outmsg("%f %f\n",(blocks)
  • examples/aubioquiet.c

    r2b43a9e rd389e23  
    3737}
    3838
    39 static void process_print (void) {
     39void process_print (void) {
    4040  int curblocks = (blocks - 4) > 0 ? blocks - 4 : 0;
    4141  if (issilence == -1) {
  • examples/parse_args.h

    r2b43a9e rd389e23  
    4848extern void examples_common_process (aubio_process_func_t process_func,
    4949    aubio_print_func_t print);
     50int parse_args (int argc, char **argv);
    5051
    5152// internal stuff
     
    5758const char *prog_name;
    5859
    59 void
    60 usage (FILE * stream, int exit_code)
     60void usage (FILE * stream, int exit_code);
     61
     62void usage (FILE * stream, int exit_code)
    6163{
    6264  fprintf (stream, "usage: %s [ options ] \n", prog_name);
  • examples/utils.c

    r2b43a9e rd389e23  
    7373#endif
    7474
    75 void
    76 examples_common_init (int argc, char **argv)
     75void examples_common_init (int argc, char **argv);
     76void examples_common_del (void);
     77void examples_common_process (aubio_process_func_t process_func,
     78    aubio_print_func_t print);
     79
     80void examples_common_init (int argc, char **argv)
    7781{
    7882
     
    116120}
    117121
    118 void
    119 examples_common_del (void)
     122void examples_common_del (void)
    120123{
    121124  del_fvec (ibuf);
     
    126129}
    127130
    128 void
    129 examples_common_process (aubio_process_func_t process_func,
     131void examples_common_process (aubio_process_func_t process_func,
    130132    aubio_print_func_t print)
    131133{
  • examples/utils.h

    r2b43a9e rd389e23  
    5454/** common process function */
    5555typedef int (*aubio_process_func_t) (fvec_t * input, fvec_t * output);
     56
     57void process_block (fvec_t *ibuf, fvec_t *obuf);
     58void process_print (void);
Note: See TracChangeset for help on using the changeset viewer.