1b8e3801b2
Synchronised with opus repo on github (https://github.com/freqmod/rockbox-opus) Status: * Seeking ported from speex, but fails on some cases (e.g. seek to granule 0) * ReplayGain parsing needs to be reworked, we do vorbis-style replaygain now. http://wiki.xiph.org/OggOpus#Comment_Header explicitly forbids these in favour of R128_TRACK_GAIN tag. * No optimisation yet, source files still nearly identical to opus upstream * Multi-stream opus files may not be parsed correctly Change-Id: Ia66f1027dc1d288083e3c57b2816700078376f9a Reviewed-on: http://gerrit.rockbox.org/300 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl> Tested-by: Bertrik Sikken <bertrik@sikken.nl>
24 lines
919 B
Makefile
24 lines
919 B
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
# $Id$
|
|
#
|
|
|
|
# libopus
|
|
OPUSLIB := $(CODECDIR)/libopus.a
|
|
OPUSLIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libopus/SOURCES)
|
|
OPUSLIB_OBJ := $(call c2obj, $(OPUSLIB_SRC))
|
|
|
|
# codec specific compilation flags
|
|
$(OPUSLIB) : CODECFLAGS += -DHAVE_CONFIG_H \
|
|
-I$(RBCODECLIB_DIR)/codecs/libopus \
|
|
-I$(RBCODECLIB_DIR)/codecs/libopus/celt \
|
|
-I$(RBCODECLIB_DIR)/codecs/libopus/silk \
|
|
-I$(RBCODECLIB_DIR)/codecs/libopus/silk/fixed
|
|
|
|
$(OPUSLIB): $(OPUSLIB_OBJ)
|
|
$(SILENT)$(shell rm -f $@)
|
|
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|