summaryrefslogtreecommitdiff
path: root/muse2/muse/driver
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-12-08 00:22:51 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-12-08 00:22:51 +0000
commitf681783c513b54002aa4dfec2566f26bfc38689b (patch)
tree1aad8f37fd067cd36b2d4de1ae3b62b584914b20 /muse2/muse/driver
parentc856c3c44f488b137dd3b76f81b2d4b9c5444b73 (diff)
Some fixes to the previous commit. Apparently I missed to filter a case.
Diffstat (limited to 'muse2/muse/driver')
-rw-r--r--muse2/muse/driver/jack.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/muse2/muse/driver/jack.cpp b/muse2/muse/driver/jack.cpp
index 909e6064..f70cf3d3 100644
--- a/muse2/muse/driver/jack.cpp
+++ b/muse2/muse/driver/jack.cpp
@@ -919,7 +919,8 @@ void JackAudioDevice::graphChanged()
if (irl->channel != channel)
continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
//printf("portname=%s\n", portName);
bool found = false;
const char** pn = ports;
@@ -956,7 +957,8 @@ void JackAudioDevice::graphChanged()
if (irl->channel != channel)
continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
if (strcmp(*pn, portName) == 0) {
found = true;
break;
@@ -1004,7 +1006,8 @@ void JackAudioDevice::graphChanged()
if (irl->channel != channel)
continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
bool found = false;
const char** pn = ports;
while (pn && *pn) {
@@ -1040,7 +1043,8 @@ void JackAudioDevice::graphChanged()
if (irl->channel != channel)
continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
if (strcmp(*pn, portName) == 0) {
found = true;
break;
@@ -1114,7 +1118,8 @@ void JackAudioDevice::graphChanged()
// continue;
QString name = irl->name();
//name += QString(JACK_MIDI_OUT_PORT_SUFFIX); // p3.3.55
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
bool found = false;
const char** pn = ports;
while (pn && *pn) {
@@ -1154,7 +1159,8 @@ void JackAudioDevice::graphChanged()
//if (irl->channel != channel)
// continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
if (strcmp(*pn, portName) == 0) {
found = true;
break;
@@ -1210,7 +1216,8 @@ void JackAudioDevice::graphChanged()
//if (irl->channel != channel)
// continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
bool found = false;
const char** pn = ports;
while (pn && *pn) {
@@ -1250,7 +1257,8 @@ void JackAudioDevice::graphChanged()
//if (irl->channel != channel)
// continue;
QString name = irl->name();
- const char* portName = name.toLatin1();
+ QByteArray ba = name.toLatin1();
+ const char* portName = ba.constData();
if (strcmp(*pn, portName) == 0) {
found = true;
break;