File tree Expand file tree Collapse file tree 3 files changed +466
-379
lines changed
Client/mods/deathmatch/logic Expand file tree Collapse file tree 3 files changed +466
-379
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,20 @@ bool CClientPlayerVoice::IsFxEffectEnabled(uint uiFxEffect)
398398 return m_EnabledEffects[uiFxEffect] ? true : false ;
399399}
400400
401+ bool CClientPlayerVoice::SetFxEffectParameters (std::uint32_t uiFxEffect, void * params)
402+ {
403+ if (IsFxEffectEnabled (uiFxEffect))
404+ return BASS_FXSetParameters (m_FxEffects[uiFxEffect], params);
405+ return false ;
406+ }
407+
408+ bool CClientPlayerVoice::GetFxEffectParameters (std::uint32_t uiFxEffect, void * params)
409+ {
410+ if (IsFxEffectEnabled (uiFxEffect))
411+ return BASS_FXGetParameters (m_FxEffects[uiFxEffect], params);
412+ return false ;
413+ }
414+
401415bool CClientPlayerVoice::GetPan (float & fPan )
402416{
403417 fPan = 0 .0f ;
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ class CClientPlayerVoice
7373 bool SetFxEffect (uint uiFxEffect, bool bEnable);
7474 bool IsFxEffectEnabled (uint uiFxEffect);
7575
76+ bool SetFxEffectParameters (std::uint32_t uiFxEffect, void * params);
77+ bool GetFxEffectParameters (std::uint32_t uiFxEffect, void * params);
78+
7679 bool IsActive () { return m_bVoiceActive; }
7780
7881private:
You can’t perform that action at this time.
0 commit comments