Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1241 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.59
sletz 19 years ago
parent
commit
7dfee500d5
3 changed files with 4 additions and 3 deletions
  1. +1
    -0
      common/JackConstants.h
  2. +2
    -2
      common/JackGraphManager.cpp
  3. +1
    -1
      common/JackTransportEngine.cpp

+ 1
- 0
common/JackConstants.h View File

@@ -31,6 +31,7 @@


#define JACK_CLIENT_NAME_SIZE 64 #define JACK_CLIENT_NAME_SIZE 64


#define FIRST_AVAILABLE_PORT 1
#define PORT_NUM 512 #define PORT_NUM 512
#define PORT_NUM_FOR_CLIENT 256 #define PORT_NUM_FOR_CLIENT 256




+ 2
- 2
common/JackGraphManager.cpp View File

@@ -276,8 +276,8 @@ jack_port_id_t JackGraphManager::AllocatePortAux(int refnum, const char* port_na
{ {
jack_port_id_t port_index; jack_port_id_t port_index;


// Look for first available port Port index start at 1, otherwise a port_index of 0 is "seen" as a NULL port by the external API...
for (port_index = 1; port_index < PORT_NUM; port_index++) {
// Available ports start at FIRST_AVAILABLE_PORT (= 1), otherwise a port_index of 0 is "seen" as a NULL port by the external API...
for (port_index = FIRST_AVAILABLE_PORT; port_index < PORT_NUM; port_index++) {
JackPort* port = GetPort(port_index); JackPort* port = GetPort(port_index);
if (!port->IsUsed()) { if (!port->IsUsed()) {
JackLog("JackGraphManager::AllocatePortAux port_index = %ld name = %s\n", port_index, port_name); JackLog("JackGraphManager::AllocatePortAux port_index = %ld name = %s\n", port_index, port_name);


+ 1
- 1
common/JackTransportEngine.cpp View File

@@ -117,7 +117,7 @@ void JackTransportEngine::MakeAllStarting(JackClientInterface** table)
JackLog("MakeAllStarting\n"); JackLog("MakeAllStarting\n");
} }


void JackTransportEngine::CycleBegin(jack_nframes_t frame_rate, jack_time_t time) // really needed?? (woule be done in CycleEnd...)
void JackTransportEngine::CycleBegin(jack_nframes_t frame_rate, jack_time_t time) // really needed?? (would be done in CycleEnd...)
{ {
jack_position_t* pending = WriteNextStateStart(1); // Update "pending" state jack_position_t* pending = WriteNextStateStart(1); // Update "pending" state
pending->usecs = time; pending->usecs = time;


Loading…
Cancel
Save