Krotos Modules 3
Loading...
Searching...
No Matches
krotos::MuteStateMachine Class Reference

#include <MuteStateMachine.h>

Public Types

enum  MuteState { Muted , RampUp , RampDown , Playing }
 

Public Member Functions

void nextState (bool targetMuteState)
 
bool isMuted ()
 
bool isPlayingWithNoRamp ()
 
bool isNotRamping ()
 
bool isRampingDown ()
 
bool isMuted (bool targetMuteState)
 
bool isPlaying ()
 

Private Attributes

MuteState m_currentState {MuteState::Muted}
 

Member Enumeration Documentation

◆ MuteState

Enumerator
Muted 
RampUp 
RampDown 
Playing 

Member Function Documentation

◆ isMuted() [1/2]

bool krotos::MuteStateMachine::isMuted ( )
inline

◆ isMuted() [2/2]

bool krotos::MuteStateMachine::isMuted ( bool targetMuteState)
inline

◆ isNotRamping()

bool krotos::MuteStateMachine::isNotRamping ( )
inline

◆ isPlaying()

bool krotos::MuteStateMachine::isPlaying ( )
inline

◆ isPlayingWithNoRamp()

bool krotos::MuteStateMachine::isPlayingWithNoRamp ( )
inline

◆ isRampingDown()

bool krotos::MuteStateMachine::isRampingDown ( )
inline

◆ nextState()

void krotos::MuteStateMachine::nextState ( bool targetMuteState)
inline

Member Data Documentation

◆ m_currentState

MuteState krotos::MuteStateMachine::m_currentState {MuteState::Muted}
private

The documentation for this class was generated from the following file: