Ramp that sends one synthesiser channel's volume.
More...
#include <mixer.h>
|
| | ~VolumeRamp () override=default |
| | Destroy the object.
|
| | VolumeRamp (Scheduler *pScheduler, float fValue, unsigned char nChannel) |
| | Construct a ramp at full volume for a channel.
|
| void | Apply (float fValue, int nTick) override |
| | Send a volume to the channel as MIDI controller 17.
|
| | Ramp (Scheduler *pScheduler, float fValue) |
| | Construct a ramp that holds a value.
|
| virtual | ~Ramp () |
| | Stop the ramp.
|
| void | MoveTo (int nTicks, int nStepTicks, float fTarget) |
| | Move from the current value to a target.
|
| void | Move (int nTicks, int nStepTicks, float fFrom, float fTarget) |
| | Move from one value to another.
|
| void | Stop () |
| | Withdraw the next step, leaving the value where it is.
|
| float | GetValue () const |
| | Report the current value.
|
Ramp that sends one synthesiser channel's volume.
The RTTI records the class as deriving from Ramp.
◆ ~VolumeRamp()
| Mixer::VolumeRamp::~VolumeRamp |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0033bca8
- Ghidra address:
- PAL: 0x003a91e0
◆ VolumeRamp()
| Mixer::VolumeRamp::VolumeRamp |
( |
Scheduler * | pScheduler, |
|
|
float | fValue, |
|
|
unsigned char | nChannel ) |
|
inline |
Construct a ramp at full volume for a channel.
Inline. The Mixer constructor expands it.
- Parameters
-
| pScheduler | The scheduler the steps are queued on. |
| fValue | The starting volume. |
| nChannel | The channel. |
◆ Apply()
| void Mixer::VolumeRamp::Apply |
( |
float | fValue, |
|
|
int | nTick ) |
|
overridevirtual |
Send a volume to the channel as MIDI controller 17.
- Parameters
-
| fValue | The volume. |
| nTick | Unused. |
- Ghidra address:
- NTSC-U/C: 0x0033bd18
- Ghidra address:
- PAL: 0x003a9250
Implements Ramp.
The documentation for this class was generated from the following file: