port 93eac8b0 to ALSA and CoreAudio

This commit is contained in:
Robin Gareus 2016-04-26 18:19:48 +02:00
parent 59f7df38a2
commit 43e620504a
2 changed files with 6 additions and 6 deletions

View File

@ -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 ()) {

View File

@ -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 ()) {