Public bug reported:

setperiodsize() seems to be totally ignored in alsaaudio. Here's an
example session:

>>> import alsaaudio
>>> inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE)
>>> inp.setchannels(1)
1
>>> inp.setrate(22100)
22100
>>> inp.setformat(alsaaudio.PCM_FORMAT_S16_LE)
>>> inp.setperiodsize(4000)
471
>>> inp.read()[0]
471

Even though I've set the period size to 4000, the read length comes out
to 471. The read length is the same regardless of what I set the period
size to.

Possibly related: every other time I run inp.read(), the reported length
is -32 and the actual data string length is random, usually around 100
bytes.


Luke

** Affects: pyalsaaudio (Ubuntu)
     Importance: Undecided
         Status: New

-- 
setperiodsize does not work in python-alsaaudio
https://bugs.launchpad.net/bugs/189663
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to