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
|
|
@ -24,7 +24,11 @@
|
|||
// Source groups.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
singleton SFXDescription( AudioMaster );
|
||||
singleton SFXDescription( AudioMaster )
|
||||
{
|
||||
useCustomReverb = false;
|
||||
};
|
||||
|
||||
singleton SFXSource( AudioChannelMaster )
|
||||
{
|
||||
description = AudioMaster;
|
||||
|
|
@ -33,8 +37,16 @@ singleton SFXSource( AudioChannelMaster )
|
|||
singleton SFXDescription( AudioChannel )
|
||||
{
|
||||
sourceGroup = AudioChannelMaster;
|
||||
useCustomReverb = false;
|
||||
};
|
||||
|
||||
singleton SFXDescription( AudioEffectChannel )
|
||||
{
|
||||
sourceGroup = AudioChannelMaster;
|
||||
useCustomReverb = true;
|
||||
};
|
||||
|
||||
|
||||
singleton SFXSource( AudioChannelDefault )
|
||||
{
|
||||
description = AudioChannel;
|
||||
|
|
@ -45,7 +57,7 @@ singleton SFXSource( AudioChannelGui )
|
|||
};
|
||||
singleton SFXSource( AudioChannelEffects )
|
||||
{
|
||||
description = AudioChannel;
|
||||
description = AudioEffectChannel;
|
||||
};
|
||||
singleton SFXSource( AudioChannelMessages )
|
||||
{
|
||||
|
|
@ -66,7 +78,7 @@ AudioChannelMusic.play();
|
|||
AudioChannelMessages.play();
|
||||
|
||||
// Stop in-game effects channels.
|
||||
AudioChannelEffects.stop();
|
||||
AudioChannelEffects.play();
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Master SFXDescriptions.
|
||||
|
|
@ -440,4 +452,4 @@ function sfxResume( %pauseSet )
|
|||
// Clear our pause set... the caller is left
|
||||
// to clear his own if he passed one.
|
||||
%pauseSet.clear();
|
||||
}*/
|
||||
}*/
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue