[sndtools] Bug? in the source code?

Arkaitz arkaitzj at gmail.com
Fri Nov 9 18:25:53 EST 2007


Hi,
just compiled, this is the output of that openoffice wav, is it normal
all 0s output?

$ ./sndpeek --nodisplay --print
/usr/lib/openoffice/share/gallery/sounds/train.wav
[sndpeek]: opening /usr/lib/openoffice/share/gallery/sounds/train.wav...
[sndpeek]: setting sample rate to 48000
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00
256.00  0.00  0.00000000  511.00  511.00  0.00  0.00  0.00  0.00  0.00
 0.00  0.00  0.00  0.00  0.00  0.00 0.00 0.00


Thanks
On Nov 9, 2007 9:29 PM, Ananya Misra <amisra at cs.princeton.edu> wrote:
> Hi,
>
> Thanks for catching this! We'll put out a fixed version of sndpeek soon.
> For now, there's a corrected version of just the sndpeek.cpp file at
> http://soundlab.cs.princeton.edu/software/sndpeek/files/sndpeek.cpp
>
> In our tests with wav files, the output is fine (not always 0s). Does this
> happen with all the wav files you've tried?
>
> -Ananya
>
>
>
> On Tue, 6 Nov 2007, Arkaitz wrote:
>
> > Hi,
> > Im compiling sndpeek from source and if I use it with --nodisplay and
> > --print it segfaults trying to memset a noninitialized memory field at
> > sndpeek.cpp:643 . This variable is initialized in initialize_graphics
> > function which is not executed when running sndpeek with --nodisplay.
> > At least it is not working for me.
> > I am trying to use it with files instead of mic, but my wav file
> > outputs alwasy the same (all 0s), is it working properly/
> > Thanks
> >
> > --
> > Arkaitz
> > _______________________________________________
> > sndtools mailing list
> > sndtools at lists.cs.princeton.edu
> > https://lists.cs.princeton.edu/mailman/listinfo/sndtools
> >
> _______________________________________________
> sndtools mailing list
> sndtools at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/sndtools
>



-- 
Arkaitz


More information about the sndtools mailing list