From df36c2cd92c415bf3268d94607fc6e81311719b8 Mon Sep 17 00:00:00 2001 From: Jaby Date: Tue, 21 May 2024 18:15:49 +0200 Subject: [PATCH] Example usage of XA audio convert --- examples/PoolBox/.gitignore | 3 ++- examples/PoolBox/assets/Makefile | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/PoolBox/.gitignore b/examples/PoolBox/.gitignore index 32e75896..857bdbdb 100644 --- a/examples/PoolBox/.gitignore +++ b/examples/PoolBox/.gitignore @@ -4,4 +4,5 @@ *.d *.o *.lba -**/bin \ No newline at end of file +**/bin +**/audio/temp/* \ No newline at end of file diff --git a/examples/PoolBox/assets/Makefile b/examples/PoolBox/assets/Makefile index 6dec1d67..b0fac76b 100644 --- a/examples/PoolBox/assets/Makefile +++ b/examples/PoolBox/assets/Makefile @@ -2,7 +2,11 @@ include $(JABY_ENGINE_DIR)/mkfile/common/ExportPath.mk include $(JABY_ENGINE_DIR)/mkfile/common/RebuildTarget.mk OUTPUT_DIR = bin -INPUT = $(OUTPUT_DIR)/TexturePage.bin $(OUTPUT_DIR)/IconTexture.bin $(OUTPUT_DIR)/Paco.bin $(OUTPUT_DIR)/Controller.bin $(OUTPUT_DIR)/doener_fish.bin $(OUTPUT_DIR)/JabyStar.bin +INPUT = $(OUTPUT_DIR)/fox.xa $(OUTPUT_DIR)/TexturePage.bin $(OUTPUT_DIR)/IconTexture.bin $(OUTPUT_DIR)/Paco.bin $(OUTPUT_DIR)/Controller.bin $(OUTPUT_DIR)/doener_fish.bin $(OUTPUT_DIR)/JabyStar.bin + +$(OUTPUT_DIR)/fox.xa: audio/temp/fox.wav + @mkdir -p $(OUTPUT_DIR) + jaby_engine_fconv $< -o $@ xa # TODO: Simplyfy all of these? $(OUTPUT_DIR)/TexturePage.bin: TexturePage.png @@ -14,15 +18,19 @@ $(OUTPUT_DIR)/IconTexture.bin: IconTexture.png jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --semi-trans --color-trans $(OUTPUT_DIR)/Paco.bin: Paco.png + @mkdir -p $(OUTPUT_DIR) jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans $(OUTPUT_DIR)/Controller.bin: Controller.png + @mkdir -p $(OUTPUT_DIR) jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans $(OUTPUT_DIR)/doener_fish.bin: doener_fish.png + @mkdir -p $(OUTPUT_DIR) jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans $(OUTPUT_DIR)/JabyStar.bin: JabyStar.png + @mkdir -p $(OUTPUT_DIR) jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans all: $(INPUT)