shithub: aubio

Download patch

ref: 93d2418ed61a753f64e62cef76775524ec7042e7
parent: 93bcc4582abc2c8114841e6f182ea9cc9b6da420
parent: c8b52aba3554a5c1c13759497a66c71d9f014b05
author: Paul Brossier <piem@piem.org>
date: Fri Oct 5 17:57:33 EDT 2018

Merge branch 'fix/msvcwarnings'

--- /dev/null
+++ b/azure-pipelines.yml
@@ -1,0 +1,32 @@
+#  configuration file for azure continuous integration
+jobs:
+- job: linux
+  pool:
+    vmImage: 'Ubuntu 16.04'
+
+  steps:
+  - script: |
+      make
+    displayName: 'make'
+- job: windows
+  pool:
+    vmIMage: 'VS2017-Win2016'
+
+  steps:
+  - script: |
+      make
+    displayName: 'make'
+
+- job: macos
+  pool:
+    vmIMage: macOS-10.13
+
+  steps:
+  - script: |
+      brew update
+      brew install pkg-config
+      brew install sox ffmpeg libsndfile lcov
+    displayName: 'brew install'
+  - script: |
+      make
+    displayName: 'make'
--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -64,8 +64,8 @@
 // internal stuff
 extern int blocks;
 
-extern fvec_t *ibuf;
-extern fvec_t *obuf;
+extern fvec_t *input_buffer;
+extern fvec_t *output_buffer;
 
 const char *prog_name;
 
@@ -200,11 +200,11 @@
     {NULL,                    0, NULL, 0}
   };
 #endif /* HAVE_GETOPT_H */
-  prog_name = argv[0];
+  // better safe than sorry
   if (argc < 1) {
     usage (stderr, 1);
-    return -1;
   }
+  prog_name = argv[0];
 #ifdef HAVE_GETOPT_H
   do {
     next_option = getopt_long (argc, argv, options, long_options, NULL);
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -62,8 +62,8 @@
 // internal memory stuff
 aubio_source_t *this_source = NULL;
 aubio_sink_t *this_sink = NULL;
-fvec_t *ibuf;
-fvec_t *obuf;
+fvec_t *input_buffer;
+fvec_t *output_buffer;
 
 smpl_t miditap_note = 69.;
 smpl_t miditap_velo = 65.;
@@ -125,15 +125,15 @@
     source_uri = "jack";
 #endif /* HAVE_JACK */
   }
-  ibuf = new_fvec (hop_size);
-  obuf = new_fvec (hop_size);
+  input_buffer = new_fvec (hop_size);
+  output_buffer = new_fvec (hop_size);
 
 }
 
 void examples_common_del (void)
 {
-  del_fvec (ibuf);
-  del_fvec (obuf);
+  del_fvec (input_buffer);
+  del_fvec (output_buffer);
   aubio_cleanup ();
   fflush(stderr);
   fflush(stdout);
@@ -165,14 +165,14 @@
     blocks = 0;
 
     do {
-      aubio_source_do (this_source, ibuf, &read);
-      process_func (ibuf, obuf);
+      aubio_source_do (this_source, input_buffer, &read);
+      process_func (input_buffer, output_buffer);
       // print to console if verbose or no output given
       if (verbose || sink_uri == NULL) {
         print();
       }
       if (this_sink) {
-        aubio_sink_do (this_sink, obuf, hop_size);
+        aubio_sink_do (this_sink, output_buffer, hop_size);
       }
       blocks++;
       total_read += read;
--- a/wscript
+++ b/wscript
@@ -606,4 +606,5 @@
     ctx.excl += ' **/.landscape.yml'
     ctx.excl += ' **/.appveyor.yml'
     ctx.excl += ' **/.circleci/*'
+    ctx.excl += ' **/azure-pipelines.yml'
     ctx.excl += ' **/.coveragerc'