mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +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,7 +108,11 @@ void DEarthquake::Tick ()
|
|||
}
|
||||
if (--m_Countdown == 0)
|
||||
{
|
||||
Destroy ();
|
||||
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