Browse Source

Correct NetAudioBuffer::ActivePortsToNetwork and NetAudioBuffer::ActivePortsFromNetwork.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4624 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
36efef82ae
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/JackNetTool.cpp

+ 2
- 2
common/JackNetTool.cpp View File

@@ -271,7 +271,7 @@ namespace Jack
for (int port_index = 0; port_index < fNPorts; port_index++) {
// Write the active port number
if (fPortBuffer[port_index]) {
*active_port_address = port_index;
*active_port_address = htonl(port_index);
active_port_address++;
active_ports++;
assert(active_ports < 256);
@@ -291,7 +291,7 @@ namespace Jack

for (uint port_index = 0; port_index < port_num; port_index++) {
// Use -1 when port is actually connected on other side
int active_port = *active_port_address;
int active_port = ntohl(*active_port_address);
if (active_port >= 0 && active_port < fNPorts) {
fConnectedPorts[active_port] = true;
} else {


Loading…
Cancel
Save