Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsoundeffect_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QSOUNDEFFECT_P_H
5
#
define
QSOUNDEFFECT_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtMultimedia
/
private
/
qmultimedia_source_resolver_p
.
h
>
19
#
include
<
QtMultimedia
/
private
/
qsamplecache_p
.
h
>
20
#
include
<
QtMultimedia
/
qaudiodevice
.
h
>
21
#
include
<
QtMultimedia
/
qsoundeffect
.
h
>
22
#
include
<
QtMultimedia
/
qtmultimediaglobal
.
h
>
23
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
24
#
include
<
QtCore
/
qloggingcategory
.
h
>
25
#
include
<
QtCore
/
qobject
.
h
>
26
#
include
<
QtCore
/
qurl
.
h
>
27
28
QT_BEGIN_NAMESPACE
29
30
Q_DECLARE_LOGGING_CATEGORY
(
qLcSoundEffect
)
31
32
class
QSoundEffectPrivate
:
public
QObjectPrivate
33
{
34
public
:
35
virtual
bool
setAudioDevice
(QAudioDevice device) = 0;
36
virtual
QAudioDevice
audioDevice
()
const
= 0;
37
38
void
resolveAndSetSource
(
const
QUrl &, QSampleCache &);
39
QUrl
url
()
const
;
40
41
virtual
QSoundEffect
::
Status
status
()
const
= 0;
42
43
virtual
int
loopCount
()
const
= 0;
44
virtual
bool
setLoopCount
(
int
) = 0;
45
virtual
int
loopsRemaining
()
const
= 0;
46
47
virtual
float
volume
()
const
= 0;
48
virtual
bool
setVolume
(
float
) = 0;
49
virtual
bool
muted
()
const
= 0;
50
virtual
bool
setMuted
(
bool
) = 0;
51
52
virtual
void
play
() = 0;
53
virtual
void
stop
() = 0;
54
virtual
bool
playing
()
const
= 0;
55
56
static
Q_MULTIMEDIA_EXPORT QSoundEffectPrivate *
get
(
QSoundEffect
*);
57
58
using
AbstractSourceResolver
=
QMultimediaPrivate
::
AbstractSourceResolver
;
59
using
TrivialSourceResolver
=
QMultimediaPrivate
::
TrivialSourceResolver
;
60
61
QUrl
m_unresolvedUrl
;
62
std
::
unique_ptr
<
const
AbstractSourceResolver
>
m_sourceResolver
=
63
std
::
make_unique
<
TrivialSourceResolver
>();
64
65
private
:
66
virtual
void
setSource
(
QUrl
, QSampleCache &) = 0;
67
};
68
69
QT_END_NAMESPACE
70
71
#
endif
// QSOUNDEFFECT_P_H
QSoundEffectPrivate
Definition
qsoundeffect_p.h:33
QSoundEffectPrivate::status
virtual QSoundEffect::Status status() const =0
QSoundEffectPrivate::stop
virtual void stop()=0
QSoundEffectPrivate::play
virtual void play()=0
QSoundEffectPrivate::loopCount
virtual int loopCount() const =0
QSoundEffectPrivate::setSource
virtual void setSource(QUrl, QSampleCache &)=0
QSoundEffectPrivate::m_unresolvedUrl
QUrl m_unresolvedUrl
Definition
qsoundeffect_p.h:61
QSoundEffectPrivate::muted
virtual bool muted() const =0
QSoundEffectPrivate::loopsRemaining
virtual int loopsRemaining() const =0
QSoundEffectPrivate::volume
virtual float volume() const =0
QSoundEffectPrivate::m_sourceResolver
std::unique_ptr< const AbstractSourceResolver > m_sourceResolver
Definition
qsoundeffect_p.h:62
QSoundEffectPrivate::setMuted
virtual bool setMuted(bool)=0
QSoundEffectPrivate::audioDevice
virtual QAudioDevice audioDevice() const =0
QSoundEffectPrivate::url
QUrl url() const
Definition
qsoundeffect.cpp:579
QSoundEffectPrivate::setVolume
virtual bool setVolume(float)=0
QSoundEffectPrivate::setLoopCount
virtual bool setLoopCount(int)=0
QSoundEffectPrivate::resolveAndSetSource
void resolveAndSetSource(const QUrl &, QSampleCache &)
\qmlsignal QtMultimedia::SoundEffect::statusChanged()
Definition
qsoundeffect.cpp:572
QSoundEffectPrivate::playing
virtual bool playing() const =0
QSoundEffectPrivate::setAudioDevice
virtual bool setAudioDevice(QAudioDevice device)=0
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
qtmultimedia
src
multimedia
audio
qsoundeffect_p.h
Generated on
for Qt by
1.18.0