fix thinko in declaration of ARDOUR::PortEngine::get_port_by_name()
This commit is contained in:
parent
fe14092d57
commit
7fec991077
@ -117,10 +117,11 @@ class PortEngine {
|
||||
* does not exist, return an empty string.
|
||||
*/
|
||||
virtual std::string get_port_name (PortHandle) const = 0;
|
||||
|
||||
/** Return a reference to a port with the fullname @param name. Return
|
||||
* a null pointer if no such port exists.
|
||||
* an "empty" PortHandle (analogous to a null pointer) if no such port exists.
|
||||
*/
|
||||
virtual PortHandle* get_port_by_name (const std::string&) const = 0;
|
||||
virtual PortHandle get_port_by_name (const std::string&) const = 0;
|
||||
|
||||
/** Find the set of ports whose names, types and flags match
|
||||
* specified values, place the names of each port into @param ports,
|
||||
|
@ -1065,8 +1065,8 @@ AudioEngine::start_latency_detection ()
|
||||
|
||||
/* find the ports we will connect to */
|
||||
|
||||
PortEngine::PortHandle* out = pe.get_port_by_name (_latency_output_name);
|
||||
PortEngine::PortHandle* in = pe.get_port_by_name (_latency_input_name);
|
||||
PortEngine::PortHandle out = pe.get_port_by_name (_latency_output_name);
|
||||
PortEngine::PortHandle in = pe.get_port_by_name (_latency_input_name);
|
||||
|
||||
if (!out || !in) {
|
||||
stop (true);
|
||||
|
@ -126,7 +126,7 @@ class JACKAudioBackend : public AudioBackend {
|
||||
|
||||
int set_port_name (PortHandle, const std::string&);
|
||||
std::string get_port_name (PortHandle) const;
|
||||
PortHandle* get_port_by_name (const std::string&) const;
|
||||
PortHandle get_port_by_name (const std::string&) const;
|
||||
|
||||
int get_ports (const std::string& port_name_pattern, DataType type, PortFlags flags, std::vector<std::string>&) const;
|
||||
|
||||
|
@ -116,11 +116,11 @@ JACKAudioBackend::get_port_name (PortHandle port) const
|
||||
return jack_port_name ((jack_port_t*) port);
|
||||
}
|
||||
|
||||
PortEngine::PortHandle*
|
||||
PortEngine::PortHandle
|
||||
JACKAudioBackend:: get_port_by_name (const std::string& name) const
|
||||
{
|
||||
GET_PRIVATE_JACK_POINTER_RET (_priv_jack, 0);
|
||||
return (PortHandle*) jack_port_by_name (_priv_jack, name.c_str());
|
||||
return (PortHandle) jack_port_by_name (_priv_jack, name.c_str());
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user