13
0

dummy-backend, fix physical ports in/out convention.

This commit is contained in:
Robin Gareus 2014-06-01 18:16:15 +02:00
parent ea3918ba2d
commit b800a01ea6

View File

@ -925,7 +925,7 @@ DummyAudioBackend::get_physical_outputs (DataType type, std::vector<std::string>
{
for (size_t i = 0; i < _ports.size (); ++i) {
DummyPort* port = _ports[i];
if ((port->type () == type) && port->is_output () && port->is_physical ()) {
if ((port->type () == type) && port->is_input () && port->is_physical ()) {
port_names.push_back (port->name ());
}
}
@ -936,7 +936,7 @@ DummyAudioBackend::get_physical_inputs (DataType type, std::vector<std::string>&
{
for (size_t i = 0; i < _ports.size (); ++i) {
DummyPort* port = _ports[i];
if ((port->type () == type) && port->is_input () && port->is_physical ()) {
if ((port->type () == type) && port->is_output () && port->is_physical ()) {
port_names.push_back (port->name ());
}
}