Forgot missing Sound_update function in GCW0/RS-97 port.

This commit is contained in:
gameblabla 2020-10-19 06:12:16 +02:00
parent ab5d8cdced
commit 92f566c53d
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB
2 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,6 @@ OBJ_CP = $(notdir $(patsubst %.cpp, %.o, $(SRC_CP)))
OBJS = $(OBJ_C) $(OBJ_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 = -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 += -DALIGN_DWORD -DRS97 -Wall -Wextra -DNONBLOCKING_AUDIO
CFLAGS += -DLSB_FIRST -std=gnu99 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 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 SRCDIR += ./source/scale2x
endif 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) ifeq ($(PROFILE), YES)
LDFLAGS += -lgcov LDFLAGS += -lgcov

View File

@ -1144,7 +1144,7 @@ int main (int argc, char *argv[])
* ESCAPE is mapped to Select * ESCAPE is mapped to Select
*/ */
case SDLK_HOME: case SDLK_HOME:
case SDLK_3: case SDLK_END:
case SDLK_RCTRL: case SDLK_RCTRL:
case SDLK_ESCAPE: case SDLK_ESCAPE:
selectpressed = 1; selectpressed = 1;
@ -1193,6 +1193,9 @@ int main (int argc, char *argv[])
// Execute frame(s) // Execute frame(s)
system_frame(0); system_frame(0);
// Refresh sound data
Sound_Update(snd.output, snd.sample_count);
// Refresh video data // Refresh video data
video_update(); video_update();