Comments (7)
@systemcrash, @LewdNeko: What do you think?
from airplay2-receiver.
Also getting this error, but on Raspbian
from airplay2-receiver.
@Neustradamus I only have a Windows machine right now & am not experiencing issues. I won't be much help here 😅
from airplay2-receiver.
I also have this issue
from airplay2-receiver.
I've worked out the issue. It's caused by the device name in amixer. The below modification worked for me.
diff --git a/ap2/utils.py b/ap2/utils.py
index 7bfcf12..bf4dee5 100644
--- a/ap2/utils.py
+++ b/ap2/utils.py
@@ -221,7 +221,7 @@ def get_volume():
pct = 0
vol = interpolate(pct, 0, 100, -30, 0)
elif subsys == "Linux":
- line_pct = subprocess.check_output(["amixer", "get", "PCM"]).splitlines()[-1]
+ line_pct = subprocess.check_output(["amixer", "get", "Headphone"]).splitlines()[-1]
m = re.search(b"\[([0-9]+)%\]", line_pct)
if m:
pct = int(m.group(1))
@@ -255,7 +255,7 @@ def set_volume(vol):
elif subsys == "Linux":
pct = int(interpolate(vol, -30, 0, 45, 100))
- subprocess.run(["amixer", "set", "PCM", f"{pct}%%"])
+ subprocess.run(["amixer", "set", "Headphone", f"{pct}%%"])
elif subsys == "Windows":
volume_session = get_pycaw_volume_session()
if volume_session:
from airplay2-receiver.
is "headphone" a local modification for you, or one that applies globally for everyone on Linux?
from airplay2-receiver.
from airplay2-receiver.
Related Issues (20)
- Can this project support IOS screen mirroring function? HOT 2
- Issue when running code? HOT 1
- Error streaming from iPhone HOT 2
- Distorted Audio iPhone to macOS HOT 3
- Pair Setup fails - 'Hap' object has no attribute 'getDevicePassword' HOT 5
- Cannot run docker image: ModuleNotFoundError: No module named 'av' HOT 4
- much noisy or broken voice when playing songs. HOT 2
- Not listed "AirPlay Display" HOT 2
- [Windows] Worked a couple times, now repeats error HOT 5
- I can't receive a stream from Mojave – RTP ChaCha20_Poly1305 decrypt: ValueError('MAC check failed') HOT 8
- Receiver visible on iPhone's list but cannot connect HOT 1
- Unable to install within a python environment HOT 1
- The len() of class av.audio.frame.AudioFrame HOT 6
- [Windows 11 Home] Airplay receiver not visible to other devices HOT 1
- iPhone can't see device, iTunes says it's not supported HOT 1
- Building on W11 with VSBT2022 errors HOT 5
- Can't stream Apple Music to AP2R HOT 14
- Windows Network interface not found HOT 10
- Install of pinned av fails on Big Sur 11.7.10 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airplay2-receiver.