Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qaudiostatemachineutils_p.h File Reference

(834e008f4772462c536726b80cb3e4e19b851b53)

#include "qaudio.h"
+ Include dependency graph for qaudiostatemachineutils_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AudioStateMachineUtils
 

Typedefs

using AudioStateMachineUtils::RawState = int
 

Functions

constexpr bool AudioStateMachineUtils::isDrainingState (RawState state)
 
constexpr RawState AudioStateMachineUtils::addDrainingFlag (RawState state)
 
constexpr RawState AudioStateMachineUtils::removeDrainingFlag (RawState state)
 
constexpr QAudio::State AudioStateMachineUtils::toAudioState (RawState state)
 
constexpr QAudio::Error AudioStateMachineUtils::toAudioError (RawState state)
 
constexpr RawState AudioStateMachineUtils::toRawState (QAudio::State state, QAudio::Error error=QAudio::NoError)
 
constexpr RawState AudioStateMachineUtils::setStateError (RawState state, QAudio::Error error)
 
template<typename... States>
constexpr auto AudioStateMachineUtils::makeStatesChecker (States... states)
 
template<typename T , typename Predicate , typename NewValueGetter >
bool AudioStateMachineUtils::multipleCompareExchange (std::atomic< T > &target, T &prevValue, Predicate predicate, NewValueGetter newValueGetter)
 

Variables

constexpr uint32_t AudioStateMachineUtils::AudioStateBitsCount = 8
 
constexpr RawState AudioStateMachineUtils::AudioStateMask = 0xFF
 
constexpr RawState AudioStateMachineUtils::AudioErrorMask = 0xFF00
 
constexpr RawState AudioStateMachineUtils::DrainingFlag = 0x10000