File: alsa_lib_check.py

package info (click to toggle)
raysession 0.17.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,168 kB
  • sloc: python: 44,371; sh: 1,538; makefile: 208; xml: 86
file content (7 lines) | stat: -rw-r--r-- 245 bytes parent folder | download
1
2
3
4
5
6
7
try:
    from pyalsa.alsaseq import SEQ_LIB_VERSION_STR  # type: ignore
    ALSA_VERSION_LIST = [int(num) for num in SEQ_LIB_VERSION_STR.split('.')]
    assert ALSA_VERSION_LIST >= [1, 2, 4]
    ALSA_LIB_OK = True
except:
    ALSA_LIB_OK = False