]> granicus.if.org Git - python/commit
Completely change the interface to setparameters():
authorGreg Ward <gward@python.net>
Thu, 29 May 2003 21:53:06 +0000 (21:53 +0000)
committerGreg Ward <gward@python.net>
Thu, 29 May 2003 21:53:06 +0000 (21:53 +0000)
commitd676906ab7e0bda29da776a7ef384e1f751c3f27
treec075ae6a436adb0d76a5633f7788db142b19b99f
parentd691c42a38821e58c4e20dc4e0e5962d2c1bf90e
Completely change the interface to setparameters():
  * it no longer takes ssize, which served no purpose apart from
    scolding you if you got it wrong
  * changed the order of the three remaining required arguments
    to (format, channels, rate) to match the order in which they
    must be set
  * replaced the optional argument 'emulate' with 'strict': if strict
    true, and the audio device does not accept the requested sampling
    parameters, raise OSSAudioError
  * return a tuple (format, channels, rate) reflecting the sampling
    parameters that were actually set

Change the canonical name of ossaudiodev.error to
ossaudiodev.OSSAudioError (keep an alias for backwards compatibility).

Remove 'audio_types' list and 'n_audio_types' (no longer needed now that
setparameters() no longer has an 'ssize' argument to police).
Modules/ossaudiodev.c