Browse Source

Fix jackmeter & xycontroller jack-session command; rename midi_queue.h

tags/v0.9.0
falkTX 13 years ago
parent
commit
311a69a850
5 changed files with 8 additions and 5 deletions
  1. +1
    -1
      c++/jack_utils.h
  2. +1
    -1
      c++/jackmeter/jackmeter.cpp
  3. +0
    -0
      c++/midi_queue.h
  4. +1
    -0
      c++/xycontroller/qtcreator/xycontroller.pro
  5. +5
    -3
      c++/xycontroller/xycontroller.cpp

+ 1
- 1
c++/jack_utils.h View File

@@ -23,7 +23,7 @@
#include <jack/transport.h> #include <jack/transport.h>


#ifdef HAVE_JACKSESSION #ifdef HAVE_JACKSESSION
# include <jack/session.h>
#include <jack/session.h>
#endif #endif


#include <cstring> #include <cstring>


+ 1
- 1
c++/jackmeter/jackmeter.cpp View File

@@ -74,7 +74,7 @@ void port_callback(jack_port_id_t, jack_port_id_t, int, void*)
void session_callback(jack_session_event_t* const event, void* const arg) void session_callback(jack_session_event_t* const event, void* const arg)
{ {
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
QString filepath("cadence_jackmeter");
QString filepath("cadence-jackmeter");
Q_UNUSED(arg); Q_UNUSED(arg);
#else #else
QString filepath((char*)arg); QString filepath((char*)arg);


c++/queue.h → c++/midi_queue.h View File


+ 1
- 0
c++/xycontroller/qtcreator/xycontroller.pro View File

@@ -18,6 +18,7 @@ SOURCES = \


HEADERS = \ HEADERS = \
../../jack_utils.h \ ../../jack_utils.h \
../../midi_queue.h \
../../widgets/pixmapdial.h \ ../../widgets/pixmapdial.h \
../../widgets/pixmapkeyboard.h ../../widgets/pixmapkeyboard.h




+ 5
- 3
c++/xycontroller/xycontroller.cpp View File

@@ -24,7 +24,7 @@
#define VERSION "0.5.0" #define VERSION "0.5.0"


#include "../jack_utils.h" #include "../jack_utils.h"
#include "../queue.h"
#include "../midi_queue.h"
#include "ui_xycontroller.h" #include "ui_xycontroller.h"


#include <QtCore/QSettings> #include <QtCore/QSettings>
@@ -624,7 +624,7 @@ protected slots:
ui->act_ch_16->setChecked(true); ui->act_ch_16->setChecked(true);


#ifdef Q_COMPILER_INITIALIZER_LISTS #ifdef Q_COMPILER_INITIALIZER_LISTS
m_channels = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
m_channels = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
#else #else
m_channels.clear(); m_channels.clear();


@@ -746,11 +746,13 @@ protected:
} }
} }
else else
{
#ifdef Q_COMPILER_INITIALIZER_LISTS #ifdef Q_COMPILER_INITIALIZER_LISTS
m_channels = { 1 }; m_channels = { 1 };
#else #else
m_channels << 1; m_channels << 1;
#endif #endif
}


scene.setChannels(m_channels); scene.setChannels(m_channels);


@@ -920,7 +922,7 @@ int process_callback(const jack_nframes_t nframes, void*)
void session_callback(jack_session_event_t* const event, void* const arg) void session_callback(jack_session_event_t* const event, void* const arg)
{ {
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
QString filepath("cadence_xycontroller");
QString filepath("cadence-xycontroller");
Q_UNUSED(arg); Q_UNUSED(arg);
#else #else
QString filepath((char*)arg); QString filepath((char*)arg);


Loading…
Cancel
Save