mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
- Fixed: The music stream needs to zero the FMOD_REVERB_CHANNELPROPERTIES
before sending it to Channel::getReverbProperties(). - Fixed: The earthquake effect did not play its sound as an actual looping sound. I'm a bit surprised this only recently started causing problems. SVN r923 (trunk)
This commit is contained in:
parent
5d0dc65044
commit
eb1e17db06
3 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
April 17, 2008
|
||||
- Fixed: The music stream needs to zero the FMOD_REVERB_CHANNELPROPERTIES
|
||||
before sending it to Channel::getReverbProperties().
|
||||
- Fixed: The earthquake effect did not play its sound as an actual looping
|
||||
sound. I'm a bit surprised this only recently started causing problems.
|
||||
|
||||
April 17, 2008 (Changes by Graf Zahl)
|
||||
- Added Martin Howe's fixes for morphing and DECORATE function prototypes.
|
||||
- Minor fixes in texture code.
|
||||
|
|
|
@ -79,8 +79,9 @@ void DEarthquake::Tick ()
|
|||
}
|
||||
|
||||
if (!S_IsActorPlayingSomething (m_Spot, CHAN_BODY, m_QuakeSFX))
|
||||
S_SoundID (m_Spot, CHAN_BODY, m_QuakeSFX, 1, ATTN_NORM);
|
||||
|
||||
{
|
||||
S_SoundID (m_Spot, CHAN_BODY | CHAN_LOOP, m_QuakeSFX, 1, ATTN_NORM);
|
||||
}
|
||||
if (m_DamageRadius > 0)
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
|
@ -107,6 +108,10 @@ void DEarthquake::Tick ()
|
|||
}
|
||||
if (--m_Countdown == 0)
|
||||
{
|
||||
if (S_IsActorPlayingSomething(m_Spot, CHAN_BODY, m_QuakeSFX))
|
||||
{
|
||||
S_StopSound(m_Spot, CHAN_BODY);
|
||||
}
|
||||
Destroy();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ public:
|
|||
Channel->setSpeakerMix(1, 1, 1, 1, 1, 1, 1, 1);
|
||||
Channel->setVolume(volume);
|
||||
// Ensure reverb is disabled.
|
||||
FMOD_REVERB_CHANNELPROPERTIES reverb;
|
||||
FMOD_REVERB_CHANNELPROPERTIES reverb = { 0, };
|
||||
if (FMOD_OK == Channel->getReverbProperties(&reverb))
|
||||
{
|
||||
reverb.Room = -10000;
|
||||
|
|
Loading…
Reference in a new issue