|
|
|
@ -1,6 +1,8 @@ |
|
|
|
// Stubbed implementations of effects for the NOSOUND mode.
|
|
|
|
// Stubbed implementations of effects for the NOSOUND mode.
|
|
|
|
#include "effects.h" |
|
|
|
#include "effects.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "engine/random.hpp" |
|
|
|
|
|
|
|
|
|
|
|
namespace devilution { |
|
|
|
namespace devilution { |
|
|
|
int sfxdelay; |
|
|
|
int sfxdelay; |
|
|
|
_sfx_id sfxdnum; |
|
|
|
_sfx_id sfxdnum; |
|
|
|
@ -13,8 +15,38 @@ void stream_stop() { } |
|
|
|
void InitMonsterSND(int monst) { } |
|
|
|
void InitMonsterSND(int monst) { } |
|
|
|
void FreeMonsterSnd() { } |
|
|
|
void FreeMonsterSnd() { } |
|
|
|
bool CalculateSoundPosition(Point soundPosition, int *plVolume, int *plPan) { return false; } |
|
|
|
bool CalculateSoundPosition(Point soundPosition, int *plVolume, int *plPan) { return false; } |
|
|
|
void PlaySFX(_sfx_id psfx) { } |
|
|
|
void PlaySFX(_sfx_id psfx) |
|
|
|
void PlaySfxLoc(_sfx_id psfx, Point position, bool randomizeByCategory) { } |
|
|
|
{ |
|
|
|
|
|
|
|
switch (psfx) { |
|
|
|
|
|
|
|
case PS_WARR69: |
|
|
|
|
|
|
|
case PS_MAGE69: |
|
|
|
|
|
|
|
case PS_ROGUE69: |
|
|
|
|
|
|
|
case PS_MONK69: |
|
|
|
|
|
|
|
case PS_SWING: |
|
|
|
|
|
|
|
case LS_ACID: |
|
|
|
|
|
|
|
case IS_FMAG: |
|
|
|
|
|
|
|
case IS_MAGIC: |
|
|
|
|
|
|
|
case IS_BHIT: |
|
|
|
|
|
|
|
case PS_WARR14: |
|
|
|
|
|
|
|
case PS_WARR15: |
|
|
|
|
|
|
|
case PS_WARR16: |
|
|
|
|
|
|
|
case PS_WARR2: |
|
|
|
|
|
|
|
case PS_ROGUE14: |
|
|
|
|
|
|
|
case PS_MAGE14: |
|
|
|
|
|
|
|
case PS_MONK14: |
|
|
|
|
|
|
|
AdvanceRndSeed(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void PlaySfxLoc(_sfx_id psfx, Point position, bool randomizeByCategory) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!randomizeByCategory) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlaySFX(psfx); |
|
|
|
|
|
|
|
} |
|
|
|
void sound_stop() { } |
|
|
|
void sound_stop() { } |
|
|
|
void sound_update() { } |
|
|
|
void sound_update() { } |
|
|
|
void effects_cleanup_sfx() { } |
|
|
|
void effects_cleanup_sfx() { } |
|
|
|
|