diff --git a/Makefile.rs97 b/Makefile.rs97 index 2542cae..6095d71 100644 --- a/Makefile.rs97 +++ b/Makefile.rs97 @@ -23,7 +23,6 @@ OBJ_CP = $(notdir $(patsubst %.cpp, %.o, $(SRC_CP))) OBJS = $(OBJ_C) $(OBJ_CP) CFLAGS = -Ofast -fdata-sections -ffunction-sections -mno-fp-exceptions -mno-check-zero-division -mframe-header-opt -fsingle-precision-constant -fno-common -mxgot -mips32 -mno-mips16 -fno-PIC -mno-abicalls -flto -CFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1 -falign-labels=1 CFLAGS += -DALIGN_DWORD -DRS97 -Wall -Wextra -DNONBLOCKING_AUDIO CFLAGS += -DLSB_FIRST -std=gnu99 CFLAGS += -Isource -Isource/cpu_cores/$(Z80_CORE) -Isource/scalers -Isource/ports/$(PORT) -I./source/sound -Isource/unzip -Isource/sdl -Isource/sound/$(SOUND_ENGINE) -Isource/sound_output @@ -51,7 +50,7 @@ CFLAGS += -Isource/scale2x SRCDIR += ./source/scale2x endif -LDFLAGS = -nodefaultlibs -lc -lgcc -lSDL -no-pie -Wl,--as-needed -Wl,--gc-sections -flto -s +LDFLAGS = -nodefaultlibs -lc -lgcc -lm -lSDL -no-pie -Wl,--as-needed -Wl,--gc-sections -flto -s ifeq ($(PROFILE), YES) LDFLAGS += -lgcov diff --git a/source/ports/gcw0/smsplus.c b/source/ports/gcw0/smsplus.c index b59979b..29ab392 100644 --- a/source/ports/gcw0/smsplus.c +++ b/source/ports/gcw0/smsplus.c @@ -1144,7 +1144,7 @@ int main (int argc, char *argv[]) * ESCAPE is mapped to Select */ case SDLK_HOME: - case SDLK_3: + case SDLK_END: case SDLK_RCTRL: case SDLK_ESCAPE: selectpressed = 1; @@ -1193,6 +1193,9 @@ int main (int argc, char *argv[]) // Execute frame(s) system_frame(0); + // Refresh sound data + Sound_Update(snd.output, snd.sample_count); + // Refresh video data video_update();