![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsoundeffectwithplayer_p.h>
Public Member Functions | |
QSoundEffectVoice (VoiceId voiceId, std::shared_ptr< const QSample > sample, float volume, bool muted, int totalLoopCount) | |
VoicePlayResult | play (QSpan< float >) noexcept QT_MM_NONBLOCKING override |
bool | isActive () noexcept QT_MM_NONBLOCKING override |
const QAudioFormat & | format () noexcept override |
int | loopsRemaining () const |
std::shared_ptr< QSoundEffectVoice > | clone () const |
Public Member Functions inherited from QtMultimediaPrivate::QRtAudioEngineVoice | |
QRtAudioEngineVoice (VoiceId id) | |
virtual | ~QRtAudioEngineVoice ()=default |
VoiceId | voiceId () const |
Public Attributes | |
const std::shared_ptr< const QSample > | m_sample |
const int | m_totalFrames |
float | m_volume {} |
bool | m_muted {} |
std::atomic_int | m_loopsRemaining |
int | m_currentFrame {} |
QAutoResetEvent | m_currentLoopChanged |
Additional Inherited Members | |
Public Types inherited from QtMultimediaPrivate::QRtAudioEngineVoice | |
using | VoicePlayResult = QtMultimediaPrivate::VoicePlayResult |
using | VoiceId = QtMultimediaPrivate::VoiceId |
Definition at line 31 of file qsoundeffectwithplayer_p.h.
QtMultimediaPrivate::QSoundEffectVoice::QSoundEffectVoice | ( | VoiceId | voiceId, |
std::shared_ptr< const QSample > | sample, | ||
float | volume, | ||
bool | muted, | ||
int | totalLoopCount ) |
Definition at line 29 of file qsoundeffectwithplayer.cpp.
References QSoundEffectVoice().
Referenced by QSoundEffectVoice().
std::shared_ptr< QSoundEffectVoice > QtMultimediaPrivate::QSoundEffectVoice::clone | ( | ) | const |
Definition at line 92 of file qsoundeffectwithplayer.cpp.
|
inlineoverridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 39 of file qsoundeffectwithplayer_p.h.
|
overridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 84 of file qsoundeffectwithplayer.cpp.
|
inline |
Definition at line 41 of file qsoundeffectwithplayer_p.h.
|
overridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 39 of file qsoundeffectwithplayer.cpp.
int QtMultimediaPrivate::QSoundEffectVoice::m_currentFrame {} |
Definition at line 53 of file qsoundeffectwithplayer_p.h.
QAutoResetEvent QtMultimediaPrivate::QSoundEffectVoice::m_currentLoopChanged |
Definition at line 55 of file qsoundeffectwithplayer_p.h.
std::atomic_int QtMultimediaPrivate::QSoundEffectVoice::m_loopsRemaining |
Definition at line 52 of file qsoundeffectwithplayer_p.h.
bool QtMultimediaPrivate::QSoundEffectVoice::m_muted {} |
Definition at line 50 of file qsoundeffectwithplayer_p.h.
const std::shared_ptr<const QSample> QtMultimediaPrivate::QSoundEffectVoice::m_sample |
Definition at line 44 of file qsoundeffectwithplayer_p.h.
const int QtMultimediaPrivate::QSoundEffectVoice::m_totalFrames |
Definition at line 45 of file qsoundeffectwithplayer_p.h.
float QtMultimediaPrivate::QSoundEffectVoice::m_volume {} |
Definition at line 49 of file qsoundeffectwithplayer_p.h.