mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +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
|
|
@ -957,6 +957,16 @@ CoreAudioBackend::get_port_name (PortEngine::PortHandle port) const
|
|||
return static_cast<CoreBackendPort*>(port)->name ();
|
||||
}
|
||||
|
||||
PortFlags
|
||||
CoreAudioBackend::get_port_flags (PortEngine::PortHandle port) const
|
||||
{
|
||||
if (!valid_port (port)) {
|
||||
PBD::warning << _("CoreAudioBackend::get_port_flags: Invalid Port(s)") << endmsg;
|
||||
return PortFlags (0);
|
||||
}
|
||||
return static_cast<CoreBackendPort*>(port)->flags ();
|
||||
}
|
||||
|
||||
int
|
||||
CoreAudioBackend::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