Update .wav samples to use 'agbl' chunk to accomodate for vanilla's off-by-one loop end behavior (#712)

This commit is contained in:
Marcus Huderle
2025-12-28 09:10:08 -06:00
committed by GitHub
parent 14b76daff8
commit 338ec9d956
483 changed files with 204 additions and 50 deletions
+12 -22
View File
@@ -1,33 +1,23 @@
GIT_VERSION := $(shell git describe --abbrev=7 --dirty --always --tags)
CXX ?= g++
CXXFLAGS := -Wall -Werror -std=c++17 -O2
SRCS := $(wildcard *.cpp)
HEADERS := $(wildcard *.h)
CXX = g++
STRIP = strip
CXXFLAGS = -Wall -Wextra -Wconversion -std=c++17 -O2 -g -DGIT_VERSION=\"$(GIT_VERSION)\"
EXE :=
ifeq ($(OS),Windows_NT)
EXE := .exe
endif
BINARY = wav2agb$(EXE)
SRC_FILES = $(wildcard *.cpp)
OBJ_FILES = $(SRC_FILES:.cpp=.o)
.PHONY: all clean
LDFLAGS :=
ifneq (,$(RELEASE))
LDFLAGS += -static
CXXFLAGS += -flto
endif
.PHONY: clean clean
all: $(BINARY)
@:
$(BINARY): $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean:
rm -f $(OBJ_FILES) $(BINARY)
$(BINARY): $(OBJ_FILES)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
if [ $(RELEASE)x != x ]; then strip -s $@; fi
%.o: %.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
$(RM) $(BINARY)