1
0
Fork 0

Migrate Opus decoding interface to C++

This commit is contained in:
krcroft 2020-02-29 06:55:03 -08:00 committed by Patryk Obara
parent 89af984362
commit c484ef7e21
3 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,5 @@
AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_LIBRARIES = libdecoders.a
libdecoders_a_SOURCES = \
@ -33,6 +35,7 @@ libdecoders_a_CFLAGS = \
-Wall
if USE_OPUS
libdecoders_a_SOURCES += opus.c
libdecoders_a_CFLAGS += -DUSE_OPUS $(OPUSFILE_CFLAGS)
libdecoders_a_SOURCES += opus.cpp
libdecoders_a_CFLAGS += -DUSE_OPUS # Ensures Opus is registered in SDL_sound.c
libdecoders_a_CXXFLAGS += $(OPUSFILE_CFLAGS) # Ensures opus.cpp find the header
endif

View file

@ -247,7 +247,7 @@
<ClCompile Include="..\src\libs\decoders\flac.c" />
<ClCompile Include="..\src\libs\decoders\mp3.cpp" />
<ClCompile Include="..\src\libs\decoders\mp3_seek_table.cpp" />
<ClCompile Include="..\src\libs\decoders\opus.c" />
<ClCompile Include="..\src\libs\decoders\opus.cpp" />
<ClCompile Include="..\src\libs\decoders\SDL_sound.c" />
<ClCompile Include="..\src\libs\decoders\vorbis.c" />
<ClCompile Include="..\src\libs\decoders\wav.c" />