[linux-audio-dev] [ANN] aubio 0.3.0

Erik de Castro Lopo mle+la at mega-nerd.com
Fri May 26 12:25:57 UTC 2006


karsten wiese wrote:

> >     
> > As usual, the source code can be found at http://aubio.piem.org/ , 
> > and Debian packages are available from http://piem.org/debian/ . 

Errm, this looks really weird.

@@ -41,7 +41,7 @@
 aubio_sndfile_t * new_aubio_sndfile_ro(const char* outputname) {
         aubio_sndfile_t * f = AUBIO_NEW(aubio_sndfile_t);
         SF_INFO sfinfo;
-        AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo));
+        AUBIO_MEMSET(&sfinfo, 0, sfinfo);
         sfinfo.format = 0;
 
         f->handle = sf_open (outputname, SFM_READ, &sfinfo);

Are you sure you don't have diff direction wrong?

If you have a macro called X_MEMSET with very similar arguments
to the standard C function, the macro should have the same
symanics as the function it wraps. If you don't, you will confuse
people.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Lumping configuration data, security data, kernel tuning parameters,
etc. into one monstrous fragile binary data structure is really dumb."
- David F. Skoll



More information about the Linux-audio-dev mailing list