mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
add new API for retrieving port flags from backend
This commit is contained in:
parent
319a6a52ba
commit
e047b01aa2
11 changed files with 57 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ class JACKAudioBackend : public AudioBackend {
|
|||
|
||||
int set_port_name (PortHandle, const std::string&);
|
||||
std::string get_port_name (PortHandle) const;
|
||||
PortFlags get_port_flags (PortHandle) const;
|
||||
PortHandle get_port_by_name (const std::string&) const;
|
||||
int get_port_property (PortHandle, const std::string& key, std::string& value, std::string& type) const;
|
||||
int set_port_property (PortHandle, const std::string& key, const std::string& value, const std::string& type);
|
||||
|
|
|
|||
|
|
@ -124,6 +124,12 @@ JACKAudioBackend::get_port_name (PortHandle port) const
|
|||
return jack_port_name ((jack_port_t*) port);
|
||||
}
|
||||
|
||||
PortFlags
|
||||
JACKAudioBackend::get_port_flags (PortHandle port) const
|
||||
{
|
||||
return PortFlags (jack_port_flags ((jack_port_t*) port));
|
||||
}
|
||||
|
||||
int
|
||||
JACKAudioBackend::get_port_property (PortHandle port, const std::string& key, std::string& value, std::string& type) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue