[Python-Dev] Change to ossaudiodev setparameters() method

Greg Ward gward@python.net
Wed, 28 May 2003 21:32:29 -0400


[me, on ossaudiodev.setparameters()]
> In addition to being silly, this is not the documented interface.  The
> docs don't mention the 'sample_size' argument at all.  Presumably the
> doc writer realized the silliness and was going to pester me to remove
> 'sample_size', but never got around to it.  (Lot of that going around.)
> 
> So, even though we're in a beta cycle, am I allowed to change the code
> so it's 1) sensible and 2) consistent with the documentation?

[Guido]
> Yes.  I like silliness in a MP skit, but not in my APIs. :-)

OK, done.  I've also beefed up the test script a bit.  So, once again,
if you have a Linux or FreeBSD system with working sound card, can you
run

  ./python Lib/test/regrtest.py -uaudio test_ossaudiodev

...preferably before and after a "cvs up && make" to see if things are
better, worse, or unchanged?

        Greg
-- 
Greg Ward <gward@python.net>                         http://www.gerg.ca/
All the world's a stage and most of us are desperately unrehearsed.