mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Use ASIO specific device channel names for port properties/pretty names
This commit is contained in:
parent
61e851da08
commit
66cafd10d5
4 changed files with 78 additions and 2 deletions
|
|
@ -65,9 +65,11 @@ class PamPort { // PortAudio / PortMidi Backend Port
|
|||
virtual ~PamPort ();
|
||||
|
||||
const std::string& name () const { return _name; }
|
||||
const std::string& pretty_name () const { return _pretty_name; }
|
||||
PortFlags flags () const { return _flags; }
|
||||
|
||||
int set_name (const std::string &name) { _name = name; return 0; }
|
||||
int set_pretty_name (const std::string& name) { _pretty_name = name; return 0;}
|
||||
|
||||
virtual DataType type () const = 0;
|
||||
|
||||
|
|
@ -107,6 +109,7 @@ class PamPort { // PortAudio / PortMidi Backend Port
|
|||
private:
|
||||
PortAudioBackend &_osx_backend;
|
||||
std::string _name;
|
||||
std::string _pretty_name;
|
||||
const PortFlags _flags;
|
||||
LatencyRange _capture_latency_range;
|
||||
LatencyRange _playback_latency_range;
|
||||
|
|
@ -261,6 +264,7 @@ class PortAudioBackend : 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;
|
||||
int get_port_property (PortHandle, const std::string& key, std::string& value, std::string& type) const;
|
||||
|
||||
int get_ports (const std::string& port_name_pattern, DataType type, PortFlags flags, std::vector<std::string>&) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue