-
If virtual devices are configured in .asoundrc the device names cannot be used.
FIX: I had to remove the translate_cardname() function - this works for me:
self->cardname = cardname; /*translate_cardname(cardname);*/
example .asoundrc: - e.g. the device name dsp2 cannot be used if translate_cardname() is used
pcm.sound {
type hw
card 0
device 0
}
ctl.sound {.
2009-10-19 08:09:00 UTC by nobody
-
larsimmisch committed revision 36 to the PyAlsaAudio SVN repository, changing 1 files.
2009-08-24 22:59:50 UTC by larsimmisch
-
ALSA 2 is supported, but you probably don't have libasound2-dev installed, so the header files are missing. Try:
apt-get install libasound2-dev
You also need to install python-dev.
2009-08-19 10:02:30 UTC by larsimmisch
-
hello,
i am new to python on linux, advanced on python on window. Not sure if this is a unix or python problem...
working in a debian version.
in the prerequisites you mention libasound.so
this file is not available, but I do have the libasound.so.2
the build fails while building alsaaudio
gcc fails on a file, probably alsaaudio.c
it feels as if PyAlsaudio does not support...
2009-08-05 14:41:51 UTC by nobody
-
Hello,
PCM.setperiodsize() does not seem to change the period size:
>>> import alsaaudio
>>> p = alsaaudio.PCM()
>>> p.setperiodsize(2048)
940L
>>> p.dumpinfo()
PCM handle name = 'default'
PCM state = PREPARED
access type = RW_INTERLEAVED
format = 'S16_LE' (Signed 16 bit Little Endian)
subformat = 'STD' (Standard)
channels = 2
rate = 44100 bps
period time = 21333 us
period...
2009-07-24 21:22:37 UTC by nobody
-
The pyalsa from the ALSA team (at least it seems, the PKG-INFO file contains "Alsa team" as Author) enables to register a callback for when there is a change of volume for example; it permits to avoid costly and unneeded polls.
That pyalsa is difficult to find and undocumented (it seems to mirror regular ALSA more closely than PyAlsaAudio, but not completely and I had to guess a lot of...
2009-07-09 19:03:16 UTC by nobody
-
I installed pyalsaudio per instructions at http://pyalsaaudio.sourceforge.net/pyalsaaudio.html#installation but after installation, test,.py failed 3 tests with the error: "ALSAAudioError: Invalid argument". Here are the details of my setup and installation sequence.
* Running Ubuntu 9.04 (jaunty) with Linux kernel 2.6.28-13-generic on a 64-bit setup
* Installed libasound2-dev version...
2009-07-07 15:39:24 UTC by arunkv
-
OK, I see. Thank you.
2009-06-05 16:33:16 UTC by nobody
-
Indeed, it is working now. Thanks.
- Pierre.
2009-06-05 16:30:13 UTC by nobody
-
Hi Piere,
I see similar behaviour here:
>>> import alsaaudio
>>> pcm = alsaaudio.PCM()
>>>
>>> pcm.pause()
Traceback (most recent call last):
File "", line 1, in
alsaaudio.ALSAAudioError: File descriptor in bad state
Basically, pyalsaaudio does not keep track whether any playback is in progress, and if you call pause on an fresh PCM object, you get whatever...
2009-05-27 18:58:46 UTC by larsimmisch