4 alsaaudio

Availability: Linux.

The alsaaudio module defines functions and classes for using ALSA.

mixers( [cardname])
List the available mixers. The optional cardname specifies which card should be queried (this is only relevant if you have more than one sound card). Omit to use the default sound card

class PCM( [type], [mode], [cardname])
This class is used to represent a PCM device (both playback and capture devices). The arguments are:
type - can be either PCM_CAPTURE or PCM_PLAYBACK (default).
mode - can be either PCM_NONBLOCK, PCM_ASYNC, or PCM_NORMAL (the default).
cardname - specifies which card should be used (this is only relevant if you have more than one sound card). Omit to use the default sound card

class Mixer( [control], [id], [cardname])
This class is used to access a specific ALSA mixer. The arguments are:
control - Name of the chosen mixed (default is Master).
id - id of mixer (default is 0) - More explaniation needed here
cardname specifies which card should be used (this is only relevant if you have more than one sound card). Omit to use the default sound card

exception ALSAAudioError
Exception raised when an operation fails for a ALSA specific reason. The exception argument is a string describing the reason of the failure.



Subsections