Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ before_install:
install:
- sudo apt-get install build-essential libgl1-mesa-dev
- sudo apt-get install qt514base qt514multimedia qt514quickcontrols2
- sudo apt-get install libjack-dev
- source /opt/qt514/bin/qt514-env.sh


script:
- /opt/qt514/bin/qmake PREFIX=/usr
- /opt/qt514/bin/qmake PREFIX=/usr CONFIG+=jack
- make
- # Generate AppImage
# - sudo apt-get -y install checkinstall
Expand Down
12 changes: 12 additions & 0 deletions OpenSoundMeter.pro
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ unix:!macx:!ios {
src/audio/plugins/alsa.cpp

LIBS += -lasound

CONFIG(jack) {
HEADERS += \
src/audio/plugins/jack.h

SOURCES += \
src/audio/plugins/jack.cpp

LIBS += -ljack

DEFINES += USE_JACK
}
}

GRAPH = $$(GRAPH_BACKEND)
Expand Down
8 changes: 8 additions & 0 deletions src/audio/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include "plugins/alsa.h"
#endif

#ifdef USE_JACK
#include "plugins/jack.h"
#endif

#ifdef USE_ASIO
#include "plugins/asioplugin.h"
#endif
Expand Down Expand Up @@ -89,6 +93,10 @@ void Client::initPlugins()
m_plugins.push_back(QSharedPointer<Plugin>(new AlsaPlugin()));
#endif

#ifdef USE_JACK
m_plugins.push_back(QSharedPointer<Plugin>(new JackPlugin()));
#endif

for (auto &&plugin : m_plugins) {
connect(plugin.data(), &Plugin::deviceListChanged, this, [this]() {
refreshDeviceList();
Expand Down
Loading