Rename `PortSetDeviceName` to `PortSetDeviceMetadata`
This commit is contained in:
parent
c2ec4b37d4
commit
bb416c7801
|
@ -1074,7 +1074,7 @@ int JackEngine::PortRename(int refnum, jack_port_id_t port, const char* name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int JackEngine::PortSetDeviceName(jack_port_id_t port, const char* pretty_name)
|
||||
int JackEngine::PortSetDeviceMetadata(jack_port_id_t port, const char* pretty_name)
|
||||
{
|
||||
static const char* type = "text/plain";
|
||||
jack_uuid_t uuid = jack_port_uuid_generate(port);
|
||||
|
|
|
@ -138,7 +138,7 @@ class SERVER_EXPORT JackEngine : public JackLockAble
|
|||
|
||||
int PortRename(int refnum, jack_port_id_t port, const char* name);
|
||||
|
||||
int PortSetDeviceName(jack_port_id_t port, const char* pretty_name);
|
||||
int PortSetDeviceMetadata(jack_port_id_t port, const char* pretty_name);
|
||||
|
||||
int ComputeTotalLatencies();
|
||||
|
||||
|
|
|
@ -246,11 +246,11 @@ class SERVER_EXPORT JackLockedEngine
|
|||
CATCH_EXCEPTION_RETURN
|
||||
}
|
||||
|
||||
int PortSetDeviceName(int refnum, jack_port_id_t port, const char* pretty_name)
|
||||
int PortSetDeviceMetadata(int refnum, jack_port_id_t port, const char* pretty_name)
|
||||
{
|
||||
TRY_CALL
|
||||
JackLock lock(&fEngine);
|
||||
return (fEngine.CheckClient(refnum)) ? fEngine.PortSetDeviceName(port, pretty_name) : -1;
|
||||
return (fEngine.CheckClient(refnum)) ? fEngine.PortSetDeviceMetadata(port, pretty_name) : -1;
|
||||
CATCH_EXCEPTION_RETURN
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ JackALSARawMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(alias);
|
||||
port->SetLatencyRange(JackCaptureLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
input_port->GetDeviceName());
|
||||
fCapturePortList[i] = index;
|
||||
|
||||
|
@ -108,7 +108,7 @@ JackALSARawMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(alias);
|
||||
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
output_port->GetDeviceName());
|
||||
fPlaybackPortList[i] = index;
|
||||
|
||||
|
|
|
@ -372,7 +372,7 @@ JackCoreMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(port_obj->GetAlias());
|
||||
port->SetLatencyRange(JackCaptureLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
port_obj->GetDeviceName());
|
||||
fCapturePortList[i] = index;
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ JackCoreMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(port_obj->GetAlias());
|
||||
port->SetLatencyRange(JackCaptureLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
port_obj->GetDeviceName());
|
||||
fCapturePortList[num_physical_inputs + i] = index;
|
||||
}
|
||||
|
@ -419,7 +419,7 @@ JackCoreMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(port_obj->GetAlias());
|
||||
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
port_obj->GetDeviceName());
|
||||
fPlaybackPortList[i] = index;
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ JackCoreMidiDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(port_obj->GetAlias());
|
||||
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
port_obj->GetDeviceName());
|
||||
fPlaybackPortList[num_physical_outputs + i] = index;
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ JackWinMMEDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(input_port->GetAlias());
|
||||
port->SetLatencyRange(JackCaptureLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
input_port->GetDeviceName());
|
||||
fCapturePortList[i] = index;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ JackWinMMEDriver::Attach()
|
|||
port = fGraphManager->GetPort(index);
|
||||
port->SetAlias(output_port->GetAlias());
|
||||
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
|
||||
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
|
||||
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
|
||||
output_port->GetDeviceName());
|
||||
fPlaybackPortList[i] = index;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue