mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
port 93eac8b0 to ALSA and CoreAudio
This commit is contained in:
parent
59f7df38a2
commit
43e620504a
2 changed files with 6 additions and 6 deletions
|
|
@ -1289,7 +1289,7 @@ AlsaAudioBackend::get_ports (
|
|||
}
|
||||
}
|
||||
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
AlsaPort* port = *i;
|
||||
if ((port->type () == type) && flags == (port->flags () & flags)) {
|
||||
if (!use_regexp || !regexec (&port_regex, port->name ().c_str (), 0, NULL, 0)) {
|
||||
|
|
@ -1814,7 +1814,7 @@ AlsaAudioBackend::n_physical_outputs () const
|
|||
{
|
||||
int n_midi = 0;
|
||||
int n_audio = 0;
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
AlsaPort* port = *i;
|
||||
if (port->is_output () && port->is_physical ()) {
|
||||
switch (port->type ()) {
|
||||
|
|
@ -1835,7 +1835,7 @@ AlsaAudioBackend::n_physical_inputs () const
|
|||
{
|
||||
int n_midi = 0;
|
||||
int n_audio = 0;
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
AlsaPort* port = *i;
|
||||
if (port->is_input () && port->is_physical ()) {
|
||||
switch (port->type ()) {
|
||||
|
|
|
|||
|
|
@ -981,7 +981,7 @@ CoreAudioBackend::get_ports (
|
|||
}
|
||||
}
|
||||
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
CoreBackendPort* port = *i;
|
||||
if ((port->type () == type) && flags == (port->flags () & flags)) {
|
||||
if (!use_regexp || !regexec (&port_regex, port->name ().c_str (), 0, NULL, 0)) {
|
||||
|
|
@ -1512,7 +1512,7 @@ CoreAudioBackend::n_physical_outputs () const
|
|||
{
|
||||
int n_midi = 0;
|
||||
int n_audio = 0;
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
CoreBackendPort* port = *i;
|
||||
if (port->is_output () && port->is_physical ()) {
|
||||
switch (port->type ()) {
|
||||
|
|
@ -1533,7 +1533,7 @@ CoreAudioBackend::n_physical_inputs () const
|
|||
{
|
||||
int n_midi = 0;
|
||||
int n_audio = 0;
|
||||
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
|
||||
CoreBackendPort* port = *i;
|
||||
if (port->is_input () && port->is_physical ()) {
|
||||
switch (port->type ()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue