Skip to content

Commit 56df015

Browse files
committed
switch to 11Khz
1 parent da63807 commit 56df015

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ MP3S := $(wildcard resources/sfx/bgms/*.mp3)
4141
BGMS := $(subst .mp3,.raw,$(subst resources/,filesystem/,$(MP3S)))
4242
filesystem/sfx/bgms/%.raw: resources/sfx/bgms/%.mp3
4343
@mkdir -p `echo $@ | xargs dirname`
44-
sox $< -b 16 -e signed-integer -B -r 44100 $@ remix -
44+
sox $< -b 16 -e signed-integer -B -r 11025 $@ remix -
4545

4646
# code #
4747
SRCS := $(wildcard src/*.c)
@@ -61,7 +61,7 @@ $(PROG_NAME).dfs: $(SPRITES) $(BGMS)
6161
# rom
6262
$(PROG_NAME).z64: $(PROG_NAME).bin $(PROG_NAME).dfs
6363
@rm -f $@
64-
$(N64TOOL) -l 64M -t "$(PROG_NAME)" -h $(ROOTDIR)/mips64-elf/lib/header -o $(PROG_NAME).z64 $(PROG_NAME).bin -s 1M $(PROG_NAME).dfs
64+
$(N64TOOL) -l 16M -t "$(PROG_NAME)" -h $(ROOTDIR)/mips64-elf/lib/header -o $(PROG_NAME).z64 $(PROG_NAME).bin -s 1M $(PROG_NAME).dfs
6565
$(CHKSUM64PATH) $@
6666

6767
setup: ## Create dev environment (docker image).

include/bgm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <libdragon.h>
1313

14+
#define FREQUENCY_11KHZ 11025
1415
#define FREQUENCY_44KHZ 44100
1516
#define NUM_BGMS 3
1617

src/bgm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static bool paused = false;
2020

2121
void bgm_init()
2222
{
23-
audio_init(FREQUENCY_44KHZ, 4);
23+
audio_init(FREQUENCY_11KHZ, 4);
2424
buffer = malloc(sizeof(signed short) * audio_get_buffer_length() * 2);
2525
current_bgm = 0;
2626
}

0 commit comments

Comments
 (0)