On Tuesday 01 April 2008 09:05:29 Hannu Savolainen wrote: > Hi Yair, [snip] > I think the peak meter should be separated from -v. It may slow down the > program too much when being run over slow network connection.
I think the best solution for this is to limit how many times a sec decode_verbose can be run and/or prints output. At the moment testing decode_verbose is run over every decoded buffer, which on some 16/2/44100 files measured to 170 a second. It typically prints 36 characters**. The human eye can only see so many times a second anyway. I think a 15 times a sec limit is reasonable? ** We can reduce this a bit by making the VU display output only the minimum neccesary characters. > Btw, do you think you would be interested in implementing a GTK+ based > audio player/recorder applet based on ossplay/decode.c? It looks like > decode.c contains code that can be used both from ossplay and from the > GTK+ version. This program doesn't meed to be able to record anything > else than .WAV (and possibly .au to keep Sun happy). What do you think? I'll get to that eventually, but I also have other commitments and interests. The attached diff separates the parser code from ossplay.c, and creates wrappers for malloc, fprintf, etc. Yours, Yair K. P.S. Whenever I read 'applet' I keep thinking 'java applet' for some reason.
ossplay-sep_parser.diff.gz
Description: GNU Zip compressed data
_______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel