Skip to content
Phosphor
/
API Reference
Search
PlasmaZones
Libraries
Guides
Brand
Palette
About
GitHub
Discord
Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PwAudioProbe.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 fuddlesworth
2
// SPDX-License-Identifier: LGPL-2.1-or-later
3
#pragma once
4
#include <PhosphorServicePipeWire/phosphorservicepipewire_export.h>
5
#include <QObject>
6
#include <memory>
7
namespace
PhosphorServicePipeWire
{
10
class
PHOSPHORSERVICEPIPEWIRE_EXPORT
PwAudioProbe
:
public
QObject
11
{
12
Q_OBJECT
13
Q_PROPERTY(
bool
listening
READ
listening
NOTIFY
activeChanged
)
14
Q_PROPERTY(
bool
playing
READ
playing
NOTIFY
activeChanged
)
15
Q_PROPERTY(qreal
level
READ
level
NOTIFY
levelChanged
)
16
public
:
17
explicit
PwAudioProbe
(QObject* parent =
nullptr
);
18
~PwAudioProbe
()
override
;
19
[[nodiscard]]
bool
listening
()
const
;
20
[[nodiscard]]
bool
playing
()
const
;
21
[[nodiscard]] qreal
level
()
const
;
22
Q_INVOKABLE
void
startInputTest
(
const
QString& nodeName);
23
Q_INVOKABLE
void
playTestSound
(
const
QString& nodeName);
24
Q_INVOKABLE
void
stop
();
25
Q_SIGNALS:
26
void
activeChanged
();
27
void
levelChanged
();
28
void
error
(
const
QString& message);
29
30
private
:
31
Q_DISABLE_COPY_MOVE(
PwAudioProbe
)
32
void
start(
const
QString& nodeName,
bool
capture);
33
class
Private;
34
std::unique_ptr<Private> d;
35
};
36
}
PhosphorServicePipeWire::PwAudioProbe::playing
bool playing() const
PhosphorServicePipeWire::PwAudioProbe::playTestSound
void playTestSound(const QString &nodeName)
PhosphorServicePipeWire::PwAudioProbe::level
qreal level() const
PhosphorServicePipeWire::PwAudioProbe::activeChanged
void activeChanged()
PhosphorServicePipeWire::PwAudioProbe::stop
void stop()
PhosphorServicePipeWire::PwAudioProbe::PwAudioProbe
PwAudioProbe(QObject *parent=nullptr)
PhosphorServicePipeWire::PwAudioProbe::error
void error(const QString &message)
PhosphorServicePipeWire::PwAudioProbe::startInputTest
void startInputTest(const QString &nodeName)
PhosphorServicePipeWire::PwAudioProbe::~PwAudioProbe
~PwAudioProbe() override
PhosphorServicePipeWire::PwAudioProbe::levelChanged
void levelChanged()
PhosphorServicePipeWire::PwAudioProbe::listening
bool listening() const
PhosphorServicePipeWire
Definition
PipeWireConnection.h:20
phosphor-service-pipewire
include
PhosphorServicePipeWire
PwAudioProbe.h
Generated by
1.15.0