Added Freddy Spierenburgs patch for alsamixer_getrange and alsamixer_getenum.

git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@15 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
larsimmisch
2008-01-24 13:36:56 +00:00
parent 2cf24ef81b
commit ba03ad3c75
3 changed files with 190 additions and 62 deletions

View File

@@ -315,6 +315,16 @@ the list are:
\end{methoddesc}
\begin{methoddesc}[Mixer]{getrange}{\optional{direction}}
Return the volume range of the ALSA mixer controlled by this object.
The optional \var{direction} argument can be either 'playback' or 'capture',
which is relevant if the mixer can control both playback and capture volume.
The default value is 'playback' if the mixer has this capability, otherwise
'capture'
\end{methoddesc}
\begin{methoddesc}[Mixer]{getvolume}{\optional{direction}}
Returns a list with the current volume settings for each channel. The list elements
are integer percentages.