Client for Remote Alsamixer
Project description
Alsa GRPC Client
Small library that allows real-time volume control of ALSA devices
Example Usage
Note: Server must be running at <host>
from alsa_grpc_client import AlsaClient
from time import sleep
def on_connect(ctrl):
print('Connected to', ctrl.card, ctrl.name, ctrl.volume)
ctrl.subscribe(lambda: print('Received volume update for', ctrl.name, ctrl.volume))
client = AlsaClient('<host>', 50051, on_connect)
client.connect()
sleep(1)
for name, ctrl in client.controls.items():
ctrl.set_volume(.5)
sleep(1)
client.disconnect()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alsa_grpc_client-0.0.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for alsa_grpc_client-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca131611c3f4ef863901ed8d974850a2528113dc80149321f0007a1d75827b3 |
|
MD5 | b4e5738e302cda74b68cde1a7d7909f6 |
|
BLAKE2b-256 | 7d666d5a67620751170ab11d634ec395897839d6c62c45733c6ab170c33e2363 |