25 #ifndef PEGASUS_FADER_H 26 #define PEGASUS_FADER_H 28 #include "pegasus/elements.h" 29 #include "pegasus/timers.h" 39 _faderScale = kDefaultTimeScale;
48 void setFaderScale(
const TimeScale scale) { _faderScale =
scale; }
49 TimeScale getFaderScale()
const {
return _faderScale; }
51 void makeOneKnotFaderSpec(
const int32);
52 void makeTwoKnotFaderSpec(
const TimeScale,
const TimeValue,
const int32,
const TimeValue,
const int32);
54 void insertFaderKnot(
const TimeValue,
const int32);
56 uint32 getNumKnots()
const {
return _numKnots; }
57 TimeValue getNthKnotTime(
const uint32 index)
const {
return _knots[index].knotTime; }
58 int32 getNthKnotValue(
const uint32 index)
const {
return _knots[index].knotValue; }
66 TimeScale _faderScale;
69 static const uint32 kMaxFaderKnots = 20;
78 virtual void setFaderValue(
const int32);
79 int32 getFaderValue()
const {
return _currentValue; }
83 virtual void stopFader();
84 virtual bool isFading() {
return isRunning(); }
89 void getCurrentFaderMove(
FaderMoveSpec &spec) { spec = _currentFaderMove; }
93 void timeChanged(
const TimeValue)
override;
104 void setFaderValue(
const int32)
override;
115 void setFaderValue(
const int32)
override;
117 void setMasterVolume(
const uint16);
118 uint16 getMasterVolume()
const {
return _masterVolume; }
121 void attachSound(
Sound *);
124 uint16 _masterVolume;
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: elements.h:43
Definition: ai_action.h:33