From f179db2d9b591b0880ad773f35c9773b76edc3ee Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 2 Feb 2024 18:32:19 +0100 Subject: [PATCH] de-duplicate PCM.info() documentation ... and move the dumpinfo() docu. amends 4e098da - clearly, i'm blind. --- doc/libalsaaudio.rst | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/doc/libalsaaudio.rst b/doc/libalsaaudio.rst index 84330f2..f4af622 100644 --- a/doc/libalsaaudio.rst +++ b/doc/libalsaaudio.rst @@ -248,6 +248,12 @@ PCM objects have the following methods: as can be found in the `ALSA documentation `_. + *New in 0.9.1* + +.. method:: PCM.dumpinfo() + + Dumps the PCM object's configured parameters to stdout. + .. method:: PCM.pcmtype() Returns the type of PCM object. Either :const:`PCM_CAPTURE` or @@ -306,20 +312,6 @@ PCM objects have the following methods: .. deprecated:: 0.9 Use the `periodsize` named argument to :func:`PCM`. -.. method:: PCM.info() - - Returns a dictionary with the PCM object's configured parameters. - - Values are retrieved from the ALSA library if they are available; - otherwise they represent those stored by pyalsaaudio, and their keys - are prefixed with ' (call value) '. - - *New in 0.9.1* - -.. method:: PCM.dumpinfo() - - Dumps the PCM object's configured parameters to stdout. - .. method:: PCM.state() Returs the current state of the stream, which can be one of