wavelength 1.0.0
Loading...
Searching...
No Matches
MixTrack::VolumeRamp Class Reference

Ramp of the volume of a track. More...

#include <mixtrack.h>

Inheritance diagram for MixTrack::VolumeRamp:
Collaboration diagram for MixTrack::VolumeRamp:

Public Member Functions

 VolumeRamp (MixTrack *pOwner)
 Construct a ramp at 0 on the scheduler of the front end.
 ~VolumeRamp () override
 Stop the ramp.
void Apply (float fValue, int nTick) override
 Set the volume of the track.
Public Member Functions inherited from Ramp
 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.

Detailed Description

Ramp of the volume of a track.

Each new value goes to MixTrack::SetVolume().

The RTTI includes the class name and records Ramp as the base. The object is 0x3c bytes.

Constructor & Destructor Documentation

◆ VolumeRamp()

MixTrack::VolumeRamp::VolumeRamp ( MixTrack * pOwner)
explicit

Construct a ramp at 0 on the scheduler of the front end.

No out-of-line body exists. The constructor of MixTrack expands it inline.

Parameters
pOwnerThe track.

◆ ~VolumeRamp()

MixTrack::VolumeRamp::~VolumeRamp ( )
override

Stop the ramp.

Ghidra address:
NTSC-U/C: 0x00356008
Ghidra address:
PAL: 0x003c32b8

Member Function Documentation

◆ Apply()

void MixTrack::VolumeRamp::Apply ( float fValue,
int nTick )
overridevirtual

Set the volume of the track.

Parameters
fValueThe volume.
nTickThe tick. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x00356078
Ghidra address:
PAL: 0x003c3328

Implements Ramp.


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