annotate vamp-client/qt/test.pro @ 185:3eb00e5c76c4

Pull step & block size out into framing struct, return in config Update the C++ code to separate out the framing parameters (step and block size) from the configuration structure into their own structure, as in the latest schema, and to return the accepted framing params in the configuration response. This also implies that the plugin stub (which adapts Piper API back to Vamp) makes a note of the returned values, making them available via its own getPreferredStep/BlockSize so that the host can retry the initialise call in the case where it failed for having the wrong values first time.
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 03 Feb 2017 16:23:21 +0000
parents 7a113d07cd55
children c67a0a945b6b
rev   line source
cannam@150 1
cannam@150 2 TEMPLATE = app
cannam@150 3
cannam@150 4 CONFIG += qt stl c++11 exceptions console warn_on
cannam@150 5 QT -= xml network gui widgets
cannam@150 6
cannam@150 7 !win32 {
cannam@150 8 QMAKE_CXXFLAGS += -Werror
cannam@150 9 }
cannam@150 10
cannam@150 11 OBJECTS_DIR = ../o
cannam@150 12 MOC_DIR = ../o
cannam@150 13
cannam@150 14 VAMPSDK_DIR = ../../../vamp-plugin-sdk
cannam@150 15 PIPER_DIR = ../../../piper
cannam@150 16
cannam@150 17 QMAKE_CXXFLAGS = -I$$VAMPSDK_DIR -I.. -I../..
cannam@150 18
cannam@161 19 LIBS += -L/usr/local/lib -lcapnp -lkj -L$$VAMPSDK_DIR -lvamp-hostsdk
cannam@150 20
cannam@150 21 # Using the "console" CONFIG flag above should ensure this happens for
cannam@150 22 # normal Windows builds, but this may be necessary when cross-compiling
cannam@150 23 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
cannam@150 24
cannam@150 25 macx*: CONFIG -= app_bundle
cannam@150 26
cannam@150 27 TARGET = test
cannam@150 28
cannam@150 29 SOURCES += \
cannam@150 30 test.cpp \
cannam@150 31 ../../vamp-capnp/piper-capnp.cpp
cannam@150 32
cannam@150 33 HEADERS += \
cannam@150 34 ProcessQtTransport.h \
cannam@150 35 AutoPlugin.h \
cannam@150 36 ../CapnpRRClient.h \
cannam@150 37 ../Loader.h \
cannam@150 38 ../PluginClient.h \
cannam@150 39 ../PluginStub.h \
cannam@150 40 ../SynchronousTransport.h
cannam@150 41
cannam@150 42