Skip to content
Permalink
Browse files

Show an error message in chat when trying to enable sounds/music in w…

…eb client.

This makes it absolutely clear that sound/music isn't broken, it's intentionally not supported currently.
  • Loading branch information
UnknownShadow200 committed Jan 1, 2020
1 parent 1432923 commit 4c9b7d668a9010b8016c7beb6f544cfc20a71b49
Showing with 7 additions and 2 deletions.
  1. +7 −2 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

0 comments on commit 4c9b7d6

Please sign in to comment.
You can’t perform that action at this time.