mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Add reverb
Adds reverb functionality to sound system TODO: Make a proper sfxMixer api that will route voices to channels that have the effects slots added to them. this is just a place holder for a more complete implementation
This commit is contained in:
parent
15a7b8cce0
commit
acda0354d6
11 changed files with 830 additions and 1002 deletions
|
|
@ -80,6 +80,10 @@ class SFXALDevice : public SFXDevice
|
|||
F32 mDistanceFactor;
|
||||
F32 mRolloffFactor;
|
||||
F32 mUserRolloffFactor;
|
||||
|
||||
ALuint mEffect;
|
||||
ALuint mAuxSlot;
|
||||
bool mHasEFX;
|
||||
|
||||
void _setRolloffFactor( F32 factor );
|
||||
|
||||
|
|
@ -91,9 +95,12 @@ class SFXALDevice : public SFXDevice
|
|||
void setListener( U32 index, const SFXListenerProperties& listener ) override;
|
||||
void setDistanceModel( SFXDistanceModel model ) override;
|
||||
void setDopplerFactor( F32 factor ) override;
|
||||
void setReverb(const SFXReverbProperties& reverb) override;
|
||||
void setRolloffFactor( F32 factor ) override;
|
||||
void resetReverb() override {}
|
||||
void setSpeedOfSound(F32 speedOfSound) override;
|
||||
|
||||
ALuint getDeviceAuxSlot() { return mAuxSlot; }
|
||||
};
|
||||
|
||||
#endif // _SFXALDEVICE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue