Refactor for testing

Added basic decoding functionality to test.

Refactored some code to stop 3DS specific code from compiling on
GNU/Linux.

Tested working by running the test executable on GNU/Linux. Vorbis
decoding has many errors detected by valgrind (but still decodes
successfully).
Opus, flac, and mp3 decoding work without errors.

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2017-08-14 23:14:45 +01:00
parent 11d7bede77
commit ef0289bceb
8 changed files with 190 additions and 105 deletions

View File

@@ -29,6 +29,7 @@ ODIR=./build/$(HOST_ARCH)
SDIR=./source
_DEPS = all.h \
file.h \
flac.h \
mp3.h \
opus.h \
@@ -37,7 +38,8 @@ _DEPS = all.h \
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = flac.o \
_OBJ = file.o \
flac.o \
mp3.o \
opus.o \
test.o \