Fill in first mp3_1 incantation
authorLauri Kasanen <cand@gmx.com>
Wed, 26 May 2021 08:39:11 +0000 (11:39 +0300)
committerLauri Kasanen <cand@gmx.com>
Wed, 26 May 2021 08:39:11 +0000 (11:39 +0300)
media/Makefile
media/audio/mp3/mp3_1.gpr [new file with mode: 0644]

index 4ea633ccea8ee4e99d586e6d8e474d3fd3c0fdc1..0e64e1d88abeb58491f62810c42983b72faa72ee 100644 (file)
@@ -116,3 +116,15 @@ tests: $(OBJ)
                -d $(DUMP):0x400000:128 \
                -i audio/mp3/mp3_0_apply_window_float.bin
        cmp $(DUMP) data/audio/mp3/mp3_0_data/samples9000
+
+       ##
+
+       pypowersim -g audio/mp3/mp3_1.gpr \
+               -s common.spr \
+               -l data/audio/mp3/mp3_1_data/beforeout0:0x100000 \
+               -l data/audio/mp3/mp3_1_data/buf0:0x200000 \
+               -l data/audio/mp3/mp3_1_data/in0:0x300000 \
+               -l data/audio/mp3/mp3_1_data/win0:0x400000 \
+               -d $(DUMP):0x100000:2304 \
+               -i audio/mp3/mp3_1_imdct36_float.bin
+       cmp $(DUMP) data/audio/mp3/mp3_1_data/out0
diff --git a/media/audio/mp3/mp3_1.gpr b/media/audio/mp3/mp3_1.gpr
new file mode 100644 (file)
index 0000000..3f28a7a
--- /dev/null
@@ -0,0 +1,6 @@
+# void imdct36(float *out, float *buf, float *in, const float *win);
+1: 0x4000        # stack pointer
+3: 0x100000      # param 1: float *out
+4: 0x200000      # param 2: float *buf
+5: 0x300000      # param 3: float *in
+6: 0x400000      # param 3: const float *win