Mercurial > hg > sonic-visualiser
view server.pro @ 1472:59c6b75da437 3.0-integration
Fix race condition in first-time recording, where adding the recording wave model would prompt the audio play source to note that its channel count had increased (from 0 to, say, 2) and thus to cause the audio device to be reopened, stopping recording. Fix is to make this only happen if channel count increases beyond that of the device, which shouldn't happen in the recording case
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 11:48:03 +0000 |
parents | 409ee88107e8 |
children | 106a16cfdd2f |
line wrap: on
line source
TEMPLATE = app CONFIG += stl c++11 exceptions console warn_on CONFIG -= qt exists(config.pri) { include(config.pri) } !exists(config.pri) { include(noconfig.pri) macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz } # Can't support this flag with the JSON11 and basen modules as they stand QMAKE_CXXFLAGS -= -Werror # Using the "console" CONFIG flag above should ensure this happens for # normal Windows builds, but this may be necessary when cross-compiling win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console macx*: CONFIG -= app_bundle linux*: LIBS += -ldl TARGET = piper-vamp-simple-server OBJECTS_DIR = o MOC_DIR = o INCLUDEPATH += piper-cpp vamp-plugin-sdk include(vamp-plugin-sdk-files.pri) for (file, VAMP_SOURCES) { SOURCES += $$file } for (file, VAMP_HEADERS) { HEADERS += $$file } HEADERS += \ piper-cpp/vamp-capnp/piper.capnp.h \ piper-cpp/vamp-capnp/VampnProto.h SOURCES += \ piper-cpp/vamp-capnp/piper-capnp.cpp \ piper-cpp/json11/json11.cpp \ piper-cpp/vamp-server/simple-server.cpp