#include <MuteValueGenerator.h>
|
| void | setMuteDirection (bool requestMute) |
| | Set mute direction.
|
| |
| bool | isFullyMuted () |
| | Query whether mute is fully muted or not.
|
| |
| void | reset (float sampleRate, float rampLengthInSeconds) |
| | Reset to a new sample rate and ramp length.
|
| |
| bool | calculateNextValue () |
| | Calculate the next mute value.
|
| |
| float | getValue () |
| | Returns the current mute value.
|
| |
◆ calculateNextValue()
| bool krotos::MuteValueGenerator::calculateNextValue |
( |
| ) |
|
|
inline |
Calculate the next mute value.
- Returns
- Returns true if the value just arrived at zero
◆ getValue()
| float krotos::MuteValueGenerator::getValue |
( |
| ) |
|
|
inline |
Returns the current mute value.
- Returns
- The current mute value
◆ isFullyMuted()
| bool krotos::MuteValueGenerator::isFullyMuted |
( |
| ) |
|
|
inline |
Query whether mute is fully muted or not.
- Parameters
-
| Returns | true for fully muted |
◆ reset()
| void krotos::MuteValueGenerator::reset |
( |
float | sampleRate, |
|
|
float | rampLengthInSeconds ) |
|
inline |
Reset to a new sample rate and ramp length.
- Parameters
-
| sampleRate | The sample rate |
| rampLengthInSeconds | The duration of the ramp in seconds |
◆ setMuteDirection()
| void krotos::MuteValueGenerator::setMuteDirection |
( |
bool | requestMute | ) |
|
|
inline |
Set mute direction.
- Parameters
-
| Muting | if true, unmuting if false |
◆ m_muteDelta
| float krotos::MuteValueGenerator::m_muteDelta {0.001f} |
|
private |
◆ m_muteValue
| float krotos::MuteValueGenerator::m_muteValue {1.0f} |
|
private |
◆ m_requestMute
| bool krotos::MuteValueGenerator::m_requestMute {false} |
|
private |
The documentation for this class was generated from the following file: