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. SkollReceived on Fri May 26 16:15:07 2006
This archive was generated by hypermail 2.1.8 : Fri May 26 2006 - 16:15:08 EEST