From 4c9b7d668a9010b8016c7beb6f544cfc20a71b49 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 1 Jan 2020 22:53:14 +1100 Subject: [PATCH] Show an error message in chat when trying to enable sounds/music in web client. This makes it absolutely clear that sound/music isn't broken, it's intentionally not supported currently. --- src/Audio.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Audio.c b/src/Audio.c index 2ccc176ad..a07c3a5a3 100644 --- a/src/Audio.c +++ b/src/Audio.c @@ -21,8 +21,13 @@ int Audio_SoundsVolume, Audio_MusicVolume; static void Audio_Init(void) { } static void Audio_Free(void) { } -void Audio_SetMusic(int volume) { } -void Audio_SetSounds(int volume) { } +void Audio_SetMusic(int volume) { + if (volume) Chat_AddRaw("&cMusic is not supported currently"); +} +void Audio_SetSounds(int volume) { + if (volume) Chat_AddRaw("&cSounds are not supported currently"); +} + void Audio_PlayDigSound(cc_uint8 type) { } void Audio_PlayStepSound(cc_uint8 type) { } #else