a0926b93e771 — Chris Cannam tip a month ago
Add Opus paths & test
3 files changed, 5 insertions(+), 2 deletions(-)

M Makefile
M test/TestAudioStreamRead.h
M test/test.pro
M Makefile +2 -0
@@ 6,6 6,8 @@
  CXXFLAGS := -std=c++98 -DHAVE_LIBSNDFILE -DHAVE_OGGZ -DHAVE_FISHSOUND -I../bqvec -I../bqthingfactory -I../bqresample -I./bqaudiostream -fpic
 
+CXXFLAGS += -DHAVE_OPUS -I/usr/include/opus
+
 all:	$(LIBRARY)
 
 $(LIBRARY):	$(OBJECTS)

          
M test/TestAudioStreamRead.h +2 -1
@@ 124,7 124,8 @@
 limit = 0.02;
             }
             if (extension == "ogg" || extension == "mp3" ||
-                extension == "aac" || extension == "m4a") {
+                extension == "aac" || extension == "m4a" ||
+                extension == "opus") {
                 limit = 0.2;
                 edgeLimit = limit * 3;
             }

          
M test/test.pro +1 -1
@@ 10,7 10,7 @@
 DESTDIR = .
 QMAKE_LIBDIR += . ..
 
-LIBS += -L.. -lbqaudiostream -L../../bqresample -lbqresample -L../../bqvec -lbqvec -lsndfile -loggz -lfishsound
+LIBS += -L.. -lbqaudiostream -L../../bqresample -lbqresample -L../../bqvec -lbqvec -lsndfile -loggz -lfishsound -lopusfile -lopus -logg
 
 INCLUDEPATH += . .. ../../bqvec ../../bqresample ../../bqthingfactory
 DEPENDPATH += . .. ../../bqvec ../../bqresample ../../bqthingfactory