PulseAudio Qt Bindings

stream.cpp
1/*
2 SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "stream.h"
8#include "context_p.h"
9#include "stream_p.h"
10#include "volumeobject_p.h"
11
12namespace PulseAudioQt
13{
14Stream::Stream(QObject *parent)
15 : VolumeObject(parent)
16 , d(new StreamPrivate(this))
17{
18 VolumeObject::d->m_volumeWritable = false;
19}
20
21Stream::~Stream()
22{
23 delete d;
24}
25
26StreamPrivate::StreamPrivate(Stream *q)
27 : q(q)
28{
29}
30
31StreamPrivate::~StreamPrivate()
32{
33}
34
35Client *Stream::client() const
36{
37 return Context::instance()->d->m_clients.data().value(d->m_clientIndex, nullptr);
38}
39
40bool Stream::isVirtualStream() const
41{
42 return d->m_virtualStream;
43}
44
45quint32 Stream::deviceIndex() const
46{
47 return d->m_deviceIndex;
48}
49
50bool Stream::isCorked() const
51{
52 return d->m_corked;
53}
54
55bool Stream::hasVolume() const
56{
57 return d->m_hasVolume;
58}
59
60} // PulseAudioQt
The primary namespace of PulseAudioQt.
Definition card.cpp:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.