Aubio patches to fix a number of Linux build issues.
Mo DeJong
mdejong at uncounted.org
Sun Aug 14 19:36:14 CEST 2005
> > ../../../aubio-0.2.0beta1/examples/utils.c: In function `examples_common_init':
> > ../../../aubio-0.2.0beta1/examples/utils.c:219: warning: value computed is not used
> >
> > I am not really sure what is up with that, but perhaps -Werror is a bit too strict.
>
> that sounds strange: line 219 is a blank line :\
>
> does it help to make an assignment in the above line? e.g.:
>
> woodblock = new_fvec(buffer_size,1);
> if (output_filename || usejack) {
> isonset = (onsetfile = new_aubio_sndfile_ro(onset_filename)) ||
> (onsetfile = new_aubio_sndfile_ro("sounds/woodblock.aiff")) ||
> (onsetfile = new_aubio_sndfile_ro("../sounds/woodblock.aiff"));
> }
I messed around with it a bit more and I think this is the right fix:
woodblock = new_fvec(buffer_size,1);
if (output_filename || usejack) {
(void) ((onsetfile = new_aubio_sndfile_ro(onset_filename)) ||
(onsetfile = new_aubio_sndfile_ro("sounds/woodblock.aiff")) ||
(onsetfile = new_aubio_sndfile_ro("../sounds/woodblock.aiff")));
}
I think your fix would work too.
cheers
Mo
--
To unsubscribe, send mail to aubio-unsubscribe at piem.org.
More information about the aubio-user
mailing list