mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
service/pipewire: add a way to set preferred default nodes
This commit is contained in:
parent
f889f08901
commit
fdc78ae16f
4 changed files with 107 additions and 13 deletions
|
|
@ -143,11 +143,19 @@ PwNodeIface* Pipewire::defaultConfiguredAudioSink() const { // NOLINT
|
|||
return PwNodeIface::instance(node);
|
||||
}
|
||||
|
||||
void Pipewire::setDefaultConfiguredAudioSink(PwNodeIface* node) {
|
||||
PwConnection::instance()->defaults.changeConfiguredSink(node ? node->node() : nullptr);
|
||||
}
|
||||
|
||||
PwNodeIface* Pipewire::defaultConfiguredAudioSource() const { // NOLINT
|
||||
auto* node = PwConnection::instance()->defaults.defaultConfiguredSource();
|
||||
return PwNodeIface::instance(node);
|
||||
}
|
||||
|
||||
void Pipewire::setDefaultConfiguredAudioSource(PwNodeIface* node) {
|
||||
PwConnection::instance()->defaults.changeConfiguredSource(node ? node->node() : nullptr);
|
||||
}
|
||||
|
||||
PwNodeIface* PwNodeLinkTracker::node() const { return this->mNode; }
|
||||
|
||||
void PwNodeLinkTracker::setNode(PwNodeIface* node) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue