Browse Source
This option completely disables all audio handling, including audio loading code and dependencies. Dialog text length is estimated to be somewhere between Cain and Griswold speed.pull/1764/head
12 changed files with 161 additions and 26 deletions
@ -0,0 +1,26 @@
|
||||
// Stubbed implementations of effects for the NOSOUND mode.
|
||||
#include "effects.h" |
||||
|
||||
namespace devilution { |
||||
int sfxdelay; |
||||
_sfx_id sfxdnum; |
||||
|
||||
// Disable clang-format here because our config says:
|
||||
// AllowShortFunctionsOnASingleLine: None
|
||||
// clang-format off
|
||||
bool effect_is_playing(int nSFX) { return false; } |
||||
void stream_stop() { } |
||||
void InitMonsterSND(int monst) { } |
||||
void FreeMonsterSnd() { } |
||||
void PlayEffect(int i, int mode) { } |
||||
void PlaySFX(_sfx_id psfx) { } |
||||
void PlaySfxLoc(_sfx_id psfx, int x, int y, bool randomizeByCategory) { } |
||||
void sound_stop() { } |
||||
void sound_update() { } |
||||
void effects_cleanup_sfx() { } |
||||
void sound_init() { } |
||||
void ui_sound_init() { } |
||||
void effects_play_sound(const char *snd_file) { } |
||||
// clang-format off
|
||||
|
||||
} // namespace devilution
|
||||
@ -0,0 +1,28 @@
|
||||
// Stubbed implementations of sound functions for the NOSOUND mode.
|
||||
#include "sound.h" |
||||
|
||||
namespace devilution { |
||||
|
||||
bool gbSndInited; |
||||
bool gbMusicOn; |
||||
bool gbSoundOn; |
||||
|
||||
// Disable clang-format here because our config says:
|
||||
// AllowShortFunctionsOnASingleLine: None
|
||||
// clang-format off
|
||||
void snd_update(bool bStopAll) { } |
||||
void snd_stop_snd(TSnd *pSnd) { } |
||||
bool snd_playing(TSnd *pSnd) { return false; } |
||||
void snd_play_snd(TSnd *pSnd, int lVolume, int lPan) { } |
||||
TSnd *sound_file_load(const char *path, bool stream) { return nullptr; } |
||||
void sound_file_cleanup(TSnd *sound_file) { } |
||||
void snd_init() { } |
||||
void snd_deinit() { } |
||||
void music_stop() { } |
||||
void music_start(uint8_t nTrack) { } |
||||
void sound_disable_music(bool disable) { } |
||||
int sound_get_or_set_music_volume(int volume) { return 0; } |
||||
int sound_get_or_set_sound_volume(int volume) { return 0; } |
||||
// clang-format on
|
||||
|
||||
} // namespace devilution
|
||||
Loading…
Reference in new issue