Clean speaker sound buffer on each init

This commit is contained in:
Cacodemon345
2022-02-02 21:19:39 +06:00
committed by GitHub
parent cceda2c16e
commit 2e723683d0

View File

@@ -106,6 +106,7 @@ speaker_get_buffer(int32_t *buffer, int len, void *p)
void
speaker_init(void)
{
memset(speaker_buffer, 0, sizeof(speaker_buffer));
sound_add_handler(speaker_get_buffer, NULL);
speaker_mute = 0;
}