Browse Source

Correct display of channel mapping.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4519 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
309d2ebf5a
2 changed files with 5 additions and 19 deletions
  1. +5
    -17
      macosx/coreaudio/JackCoreAudioDriver.cpp
  2. +0
    -2
      macosx/coreaudio/JackCoreAudioDriver.h

+ 5
- 17
macosx/coreaudio/JackCoreAudioDriver.cpp View File

@@ -189,7 +189,7 @@ static CFStringRef GetDeviceName(AudioDeviceID id)
return (err == noErr) ? UIname : NULL;
}

void JackCoreAudioDriver::ParseChannelList(const string& list, vector<int>& result)
static void ParseChannelList(const string& list, vector<int>& result)
{
stringstream ss(list);
string token;
@@ -1412,6 +1412,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing,
if (chan < out_nChannels) {
// The wanted JACK input index for the 'chan' channel value
chanArr[chan] = i;
jack_info("Input channel = %d ==> JACK input port = %d", chan, i);
} else {
jack_info("Error input channel number is incorrect : %d", chan);
goto error;
@@ -1420,14 +1421,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing,
} else {
for (int i = 0; i < inchannels; i++) {
chanArr[i] = i;
}
}

int jack_input = 0;
for (int i = 0; i < in_nChannels; i++) {
if (chanArr[i] >= 0) {
jack_info("Input channel = %d ==> JACK input port = %d", i, jack_input);
jack_input++;
jack_info("Input channel = %d ==> JACK input port = %d", chanArr[i], i);
}
}

@@ -1452,6 +1446,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing,
if (chan < out_nChannels) {
// The wanted JACK output index for the 'chan' channel value
chanArr[chan] = i;
jack_info("JACK output port = %d ==> output channel = %d", i, chan);
} else {
jack_info("Error output channel number is incorrect : %d", chan);
goto error;
@@ -1460,14 +1455,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing,
} else {
for (int i = 0; i < outchannels; i++) {
chanArr[i] = i;
}
}

int jack_output = 0;
for (int i = 0; i < out_nChannels; i++) {
if (chanArr[i] >= 0) {
jack_info("JACK output port = %d ==> output channel = %d", jack_output, i);
jack_output++;
jack_info("JACK output port = %d ==> output channel = %d", i, chanArr[i]);
}
}



+ 0
- 2
macosx/coreaudio/JackCoreAudioDriver.h View File

@@ -155,8 +155,6 @@ class JackCoreAudioDriver : public JackAudioDriver

void UpdateLatencies();

void ParseChannelList(const string& list, vector<int>& result);

public:

JackCoreAudioDriver(const char* name, const char* alias, JackLockedEngine* engine, JackSynchro* table);


Loading…
Cancel
Save