Convert all samples to .wav files

This commit is contained in:
Marcus Huderle 2026-02-01 09:47:12 -06:00
parent a87731b003
commit 489f77ad2b
612 changed files with 1542 additions and 224 deletions

View File

@ -62,12 +62,14 @@ LDFLAGS = -Map ../../$(MAP)
LIB := -L ../../tools/agbcc/lib -lgcc -lc
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
GFX := tools/gbagfx/gbagfx$(EXE)
SCANINC := tools/scaninc/scaninc$(EXE)
PREPROC := tools/preproc/preproc$(EXE)
GFX := tools/gbagfx/gbagfx$(EXE)
WAV2AGB := tools/wav2agb/wav2agb$(EXE)
SCANINC := tools/scaninc/scaninc$(EXE)
PREPROC := tools/preproc/preproc$(EXE)
RAMSCRGEN := tools/ramscrgen/ramscrgen$(EXE)
FIX := tools/gbafix/gbafix$(EXE)
FIX := tools/gbafix/gbafix$(EXE)
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
TOOLS_DIR = tools
TOOLDIRS = $(filter-out $(TOOLS_DIR)/agbcc $(TOOLS_DIR)/m2ctx.py,$(wildcard $(TOOLS_DIR)/*))
@ -123,6 +125,7 @@ compare: rom
clean: tidy clean-tools
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
find sound -iname '*.bin' -exec rm {} +
tidy:
rm -f $(ROM) $(ELF) $(MAP)
@ -137,6 +140,7 @@ clean-tools:
$(foreach tool,$(TOOLDIRS),$(MAKE) clean -C $(tool);)
include graphics_rules.mk
include audio_rules.mk
%.s: ;
%.png: ;

19
audio_rules.mk Normal file
View File

@ -0,0 +1,19 @@
# This file contains rules for making assemblies for most music in the game.
CRY_SUBDIR := sound/direct_sound_samples/cries
CRY_BIN_DIR := $(CRY_SUBDIR)
SOUND_BIN_DIR := sound
SPECIAL_OUTDIRS := $(CRY_BIN_DIR)
SPECIAL_OUTDIRS += $(SOUND_BIN_DIR) $(SOUND_BIN_DIR)/direct_sound_samples/cries
$(shell mkdir -p $(SPECIAL_OUTDIRS) )
# Compressed cries
$(CRY_BIN_DIR)/%.bin: $(CRY_SUBDIR)/%.wav
# NOTE: If using ipatix's High Quality Audio Mixer, remove "--no-pad" below.
$(WAV2AGB) -b -c -l 1 --no-pad $< $@
# Uncompressed sounds
$(SOUND_BIN_DIR)/%.bin: sound/%.wav
$(WAV2AGB) -b $< $@

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More