From 0858fb319e54923deb611536cb6c5ad89a6fc70d Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 11 Mar 2021 00:59:41 +0000 Subject: Fixes menu remapping code --- shell/audio/sdl/sound_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/audio/sdl') diff --git a/shell/audio/sdl/sound_output.c b/shell/audio/sdl/sound_output.c index ae1ab83..0758718 100644 --- a/shell/audio/sdl/sound_output.c +++ b/shell/audio/sdl/sound_output.c @@ -46,7 +46,7 @@ static void sdl_write_buffer(uint8_t* data, int32_t len) SDL_UnlockAudio(); usleep(1000); SDL_LockAudio(); - } + } *(int32_t*)((char*)(buffer + buf_write_pos)) = *(int32_t*)((char*)(data + i)); //memcpy(buffer + buf_write_pos, data + i, 4); buf_write_pos = (buf_write_pos + 4) % BUFFSIZE; -- cgit v1.2.3