Pyalsaaudio

Latest version: v0.11.0

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.11.0

- Fixed `Mixer.getvolume()` returning outdated value (126)
- Fixed PCM crashing with some sample formats due to buffer size
miscalculation
- Fixed `PCM.read()` ignoring overruns (regression in 0.10.0)
- Reverted to `PCM.write()` not throwing an exception on playback buffer
underrun; instead, return -EPIPE like `PCM.read()` does on overrun (130)
- Added `PCM.avail()` and `PCM.polldescriptors_revents()` functions
- Added `nominal_bits` and `physical_bits` entries to `PCM.info()`'s
return value
- Added Python type hint file, and adjusted documentation accordingly (58)
- Improvements to the examples, in particular isine.py (42)

Contributions by ossilator and viinikv.

0.10.0

- assorted improvements (123 from ossilator)
- support for `periods` in the `PCM` constructor.
- new functions `PCM.state()`, `PCM.drop()` and `PCM.drain()`
- improved underrun/overrun handling
- documentation improvements/consolidation (docstrings were removed in favour of online documentation)
- more sampling rates
- bug fixes

0.9.2

- Fix alsamixer_getvolume (112 from stephensp)

0.9.1

- Support decibel, percentage, and raw volumes in getvolume, setvolume, and getrange (109 from chrisdiamand)

0.9.0

- Added keyword arguments for channels, format, rate and periodsize
- Deprecated `setchannel`, `setformat`, `setrate` and `setperiodsize`

0.8.6

- Added four methods to the `PCM` class to allow users to get detailed information about the device:

- `getformats()` returns a dictionary of name / value pairs, one for each of the card's
supported formats - e.g. `{"U8": 1, "S16_LE": 2}`,
- `getchannels()` returns a list of the supported channel numbers, e.g. `[1, 2]`,
- `getrates()` returns supported sample rates for the device, e.g. `[48000]`,
- `getratebounds()` returns the device's official minimum and maximum supported
sample rates as a tuple, e.g. `(4000, 48000)`.

(82 contributed by jdstmporter)

- Prevent hang on close after capturing audio (80 contributed by daym)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.