Commit Graph

8 Commits

Author SHA1 Message Date
Michał Šrajer
40a1219dac Support 24bit audio
SND_PCM_FORMAT_S24_LE and similar are for 24bit ints packed in 4-bytes each.
There is a similar family of formats for 3-bytes packed data (as stored in 24bit wave files).

This commit:
 - adds S24_3LE, S24_3BE, U24_3LE, U24_3BE PCM formats to the alsaaudio.c
 - updates documentation
 - updates playwav.py to correctly play typical 24Bit PCM wave files

Closes #38
2017-08-29 19:09:54 +02:00
Lars Immisch
2c95f4ff6b Larger periodsize.
Before, it wasn't playing properly on my Raspberry Pi + Hifiberry DAC
2017-02-24 20:54:49 +01:00
Lars Immisch
dc51fa75b5 Make tests more robust, use devices or card indices. 2017-02-22 23:55:17 +01:00
Lars Immisch
7b9d9828e6 Move towards python 3 2015-05-08 13:27:30 +02:00
larsimmisch
3c0469c0fc Do a setperiodsize.
git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@37 ec2f30ec-7544-0410-870e-f70ca00c83f0
2009-12-18 22:18:47 +00:00
larsimmisch
72a31c802a playwav uses PCM_FORMAT_U8 for 8bit data.
Added isine as an example for interactive generation of sound.


git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@33 ec2f30ec-7544-0410-870e-f70ca00c83f0
2009-05-05 22:06:37 +00:00
larsimmisch
fc3517b00e This is release 0.4; it was tested with python2.5 and python3.0 (rc2 &
3)


git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@29 ec2f30ec-7544-0410-870e-f70ca00c83f0
2008-11-29 03:29:13 +00:00
larsimmisch
5c2a006553 Ported to Python3.0
Converted documentation to Sphinx.

Added playwav.py



git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@25 ec2f30ec-7544-0410-870e-f70ca00c83f0
2008-11-25 20:12:56 +00:00