diff --git a/doc/pyalsaaudio.rst b/doc/pyalsaaudio.rst index f3cb6c2..5cdd070 100644 --- a/doc/pyalsaaudio.rst +++ b/doc/pyalsaaudio.rst @@ -110,25 +110,32 @@ And then as root: --- :: Testing ******* -First of all, run:: - - $ python test.py +Make sure that :code:`aplay` plays a file through the soundcard you want, then +try:: -This is a small test suite that mostly performs consistency tests. If -it fails, please file a `bug report -`_. + $ python playwav.py + +If :code:`aplay` needs a device argument, like +:code:`aplay -D hw:CARD=sndrpihifiberry,DEV=0`, use:: + + $ python playwav.py -d hw:CARD=sndrpihifiberry,DEV=0 To test PCM recordings (on your default soundcard), verify your microphone works, then do:: - $ python recordtest.py + $ python recordtest.py -d Speak into the microphone, and interrupt the recording at any time with ``Ctl-C``. Play back the recording with:: - $ python playbacktest.py + $ python playbacktest.py-d +There is a minimal test suite in :code:`test.py`, but it is +a bit dependent on the ALSA configuration and may fail without indicating +a real problem. +If you find bugs/problems, please file a `bug report +`_.