/
niceSOFT
/
alsa-lib
Обзор
Документация
Войти
/
niceSOFT
/
alsa-lib
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
modules/mixer/simple/python/main.py
24 строки
533 B
Jaroslav Kysela
mixer simple basic abstraction - added python binding
11 июл 2007, 12:10
11 июл 2007, 12:10
e0d7bfc
Код
Авторство
О чём код?
#!/usr/bin/python # -*- coding: utf-8 -*- # -*- Python -*- from os.path import dirname from pyalsa.alsacontrol import Control from sys import path path.insert(0, dirname(__file__)) def alsacode(module): execfile(dirname(__file__)+'/'+module+'.py', globals()) ctl = Control(device) info = ctl.cardInfo() #mixername = info['mixername'] components = info['components'] del ctl if components.find('HDA:') >= 0: module = 'hda' else: raise ValueError, "Mixer for this hardware is not implemented in python" alsacode(module)