Comments (5)
It is possible to add this feature (or fix the bug), as far as panon can capture the event when a new device is connected. I believe "org.kde.plasma.private.volume" can capture this event, with its "PulseObject.Ports.length" I guess. But I cannot find its documentation on kde.org to make it work.
from panon.
Specifically, I see Zren using these variables in volumewin7mixer.
PulseObject.channels:
https://github.com/Zren/plasma-applet-volumewin7mixer/blob/e66e2918bc7572c189f86c4367ae6f21db7b5af0/package/contents/ui/MixerItem.qml#L28
PulseObject.ports:
https://github.com/Zren/plasma-applet-volumewin7mixer/blob/e66e2918bc7572c189f86c4367ae6f21db7b5af0/package/contents/ui/MixerItem.qml#L157
But I am not able to import them into panon. conlose.log() shows theses variables are undefined. Does anyone has a clue? What is the correct way to use these APIs?
from panon.
Hi @Zren, could you please give me some advice? or a link to the documentation of this PulseObject variable. Thanks.
from panon.
- https://invent.kde.org/plasma/plasma-pa/-/blob/master/src/volumeobject.h
- https://invent.kde.org/plasma/plasma-pa/-/blob/master/src/pulseobject.h
- https://invent.kde.org/plasma/plasma-pa/-/blob/master/src/pulseaudio.h
- https://invent.kde.org/plasma/plasma-pa/-/tree/master/src
from panon.
SinkModel
, SourceModel
etc, inherit AbstractModel
, which is an "array" where the child items only have one property, which can be referenced as model.PulseObject
in a ListModel
, or just as PulseObject
.
https://invent.kde.org/plasma/plasma-pa/-/blob/master/src/pulseaudio.cpp#L119
Sink
/Source
instances inheritDevice
which inheritsVolumeObject
which inheritsPulseObject
.SinkInput
/SourceOutput
inheritStream
which inheritsVolumeObject
which inheritsPulseObject
.
from panon.
Related Issues (20)
- panon will not start effect
- [Feature request] (bring it back) Randomize colors on click
- panon not working when turning on a video or music
- [Feature request] Normal spectrogram HOT 1
- [BUG] Visualization won't show for PulseAudio, due to Python 3.10 HOT 1
- [BUG] No matter how loud, soft, or nonexistent the audio is, the visualiser is the same HOT 2
- [Feature request] Pipewire support HOT 4
- [BUG] Panon crashes semi-often with a visualizer py error HOT 1
- [Feature request] Add ability to choose the visualization channel manually for PortAudio HOT 1
- [Feature request] How to change the audio read source HOT 1
- [BUG] i get this error when trying to use panon
- [Feature request] Add Dependencies for Fedora on the README HOT 1
- [REQUEST] It's time for a new release HOT 2
- [BUG] panon on task manager bar refreshes only when you interact with something there HOT 2
- [BUG] {Panon can't be used in Ubuntu 22.04(KDE Frameword 5.98.0)} HOT 1
- Way to disable when taskbar is hidden/ windows are maximized.
- [BUG] Panon Broken With Plasma 5.25 and Frameworks 5.94 HOT 5
- [BUG] Panon doesn't work on Arch Linux, KDE 5.25.1 HOT 2
- [BUG] Panon not working after restart HOT 2
- [BUG] bar1ch decay freezes when sound is turned off.
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 panon.