[Linux] Dynamically find device sink name (#108)

* [Linux] Dynamically find device sink name

* Logging

* WIP

* List cards instead
This commit is contained in:
Tim Gromeyer
2025-04-25 19:49:36 +02:00
committed by GitHub
parent 1571c6d300
commit 96e7a81e46
2 changed files with 52 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ Q_SIGNALS:
private:
MediaState mediaStateFromPlayerctlOutput(const QString &output);
QString getAudioDeviceName();
QDBusInterface *mprisInterface = nullptr;
QProcess *playerctlProcess = nullptr;
@@ -54,6 +55,7 @@ private:
int initialVolume = -1;
QString connectedDeviceMacAddress;
EarDetectionBehavior earDetectionBehavior = PauseWhenOneRemoved;
QString m_deviceOutputName;
};
#endif // MEDIACONTROLLER_H