Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1651 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.68
sletz 18 years ago
parent
commit
7db56d3d7a
1 changed files with 16 additions and 16 deletions
  1. +16
    -16
      common/JackGraphManager.cpp

+ 16
- 16
common/JackGraphManager.cpp View File

@@ -260,6 +260,22 @@ jack_nframes_t JackGraphManager::GetTotalLatency(jack_port_id_t port_index)
return total_latency;
}

// Server
void JackGraphManager::SetBufferSize(jack_nframes_t buffer_size)
{
JackLock lock(this);
JackLog("JackGraphManager::SetBufferSize size = %ld\n", (long int)buffer_size);
jack_port_id_t port_index;

fBufferSize = buffer_size;

for (port_index = FIRST_AVAILABLE_PORT; port_index < PORT_NUM; port_index++) {
JackPort* port = GetPort(port_index);
if (port->IsUsed())
port->ClearBuffer(fBufferSize);
}
}

// Server
jack_port_id_t JackGraphManager::AllocatePortAux(int refnum, const char* port_name, const char* port_type, JackPortFlags flags)
{
@@ -310,22 +326,6 @@ jack_port_id_t JackGraphManager::AllocatePort(int refnum, const char* port_name,
return port_index;
}

// Server
void JackGraphManager::SetBufferSize(jack_nframes_t buffer_size)
{
JackLock lock(this);
JackLog("JackGraphManager::SetBufferSize size = %ld\n", (long int)buffer_size);
jack_port_id_t port_index;

fBufferSize = buffer_size;

for (port_index = FIRST_AVAILABLE_PORT; port_index < PORT_NUM; port_index++) {
JackPort* port = GetPort(port_index);
if (port->IsUsed())
port->ClearBuffer(fBufferSize);
}
}

// Server
int JackGraphManager::ReleasePort(int refnum, jack_port_id_t port_index)
{


Loading…
Cancel
Save