You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
983 B
33 lines
983 B
|
5 years ago
|
// Stubbed implementations of sound functions for the NOSOUND mode.
|
||
|
4 years ago
|
#include "engine/sound.h"
|
||
|
5 years ago
|
|
||
|
|
namespace devilution {
|
||
|
|
|
||
|
|
bool gbSndInited;
|
||
|
|
bool gbMusicOn;
|
||
|
|
bool gbSoundOn;
|
||
|
4 years ago
|
_music_id sgnMusicTrack = NUM_MUSIC;
|
||
|
5 years ago
|
|
||
|
|
// Disable clang-format here because our config says:
|
||
|
|
// AllowShortFunctionsOnASingleLine: None
|
||
|
|
// clang-format off
|
||
|
5 years ago
|
void ClearDuplicateSounds() { }
|
||
|
5 years ago
|
void snd_play_snd(TSnd *pSnd, int lVolume, int lPan) { }
|
||
|
5 years ago
|
std::unique_ptr<TSnd> sound_file_load(const char *path, bool stream) { return nullptr; }
|
||
|
5 years ago
|
TSnd::~TSnd()
|
||
|
|
{
|
||
|
|
}
|
||
|
5 years ago
|
void snd_init() { }
|
||
|
|
void snd_deinit() { }
|
||
|
|
void music_stop() { }
|
||
|
4 years ago
|
void music_start(_music_id nTrack) { }
|
||
|
5 years ago
|
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; }
|
||
|
5 years ago
|
void music_mute() { }
|
||
|
|
void music_unmute() { }
|
||
|
4 years ago
|
_music_id GetLevelMusic(dungeon_type dungeonType) { return TMUSIC_TOWN; }
|
||
|
5 years ago
|
// clang-format on
|
||
|
|
|
||
|
|
} // namespace devilution
|