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

karsten wiese annabellesgarden at yahoo.de
Fri May 26 13:40:42 UTC 2006


> -        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?
> 
yes, given how AUBIO_MEMSET ist defined:
        #define AUBIO_MEMSET(_dst,_src,_t) memset(_dst,_src,sizeof(_t))

before the patch above example would expand to
        memset(&sfinfo, 0, sizeof(sizeof (sfinfo)));
which becomes   
        memset(&sfinfo, 0, sizeof(size_t));
what is not what we want here:-)

      Karsten


	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



More information about the Linux-audio-dev mailing list