![]() |
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 | |
| Q_MULTIMEDIA_EXPORT | QSoundEffectVoice (VoiceId voiceId, std::shared_ptr< const QSample > sample, float volume, bool muted, int totalLoopCount, QAudioFormat engineFormat) |
| Q_MULTIMEDIA_EXPORT | ~QSoundEffectVoice () |
| Q_MULTIMEDIA_EXPORT 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 (std::optional< QAudioFormat > newEngineFormat={}) const |
| Q_MULTIMEDIA_EXPORT qsizetype | playVoice (QSpan< float >) noexcept QT_MM_NONBLOCKING |
| 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 |
| const QAudioFormat | m_engineFormat |
| 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 32 of file qsoundeffectwithplayer_p.h.
| QtMultimediaPrivate::QSoundEffectVoice::QSoundEffectVoice | ( | VoiceId | voiceId, |
| std::shared_ptr< const QSample > | sample, | ||
| float | volume, | ||
| bool | muted, | ||
| int | totalLoopCount, | ||
| QAudioFormat | engineFormat ) |
Definition at line 29 of file qsoundeffectwithplayer.cpp.
|
default |
| std::shared_ptr< QSoundEffectVoice > QtMultimediaPrivate::QSoundEffectVoice::clone | ( | std::optional< QAudioFormat > | newEngineFormat = {} | ) | const |
Definition at line 146 of file qsoundeffectwithplayer.cpp.
|
inlineoverridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 44 of file qsoundeffectwithplayer_p.h.
|
overridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 137 of file qsoundeffectwithplayer.cpp.
|
inline |
Definition at line 46 of file qsoundeffectwithplayer_p.h.
|
overridevirtualnoexcept |
Implements QtMultimediaPrivate::QRtAudioEngineVoice.
Definition at line 43 of file qsoundeffectwithplayer.cpp.
Definition at line 68 of file qsoundeffectwithplayer.cpp.
| int QtMultimediaPrivate::QSoundEffectVoice::m_currentFrame {} |
Definition at line 63 of file qsoundeffectwithplayer_p.h.
| QAutoResetEvent QtMultimediaPrivate::QSoundEffectVoice::m_currentLoopChanged |
Definition at line 65 of file qsoundeffectwithplayer_p.h.
| const QAudioFormat QtMultimediaPrivate::QSoundEffectVoice::m_engineFormat |
Definition at line 57 of file qsoundeffectwithplayer_p.h.
| std::atomic_int QtMultimediaPrivate::QSoundEffectVoice::m_loopsRemaining |
Definition at line 62 of file qsoundeffectwithplayer_p.h.
| bool QtMultimediaPrivate::QSoundEffectVoice::m_muted {} |
Definition at line 60 of file qsoundeffectwithplayer_p.h.
| const std::shared_ptr<const QSample> QtMultimediaPrivate::QSoundEffectVoice::m_sample |
Definition at line 52 of file qsoundeffectwithplayer_p.h.
| const int QtMultimediaPrivate::QSoundEffectVoice::m_totalFrames |
Definition at line 53 of file qsoundeffectwithplayer_p.h.
| float QtMultimediaPrivate::QSoundEffectVoice::m_volume {} |
Definition at line 59 of file qsoundeffectwithplayer_p.h.