output/Internal: add various trivial getter methods

This commit is contained in:
Max Kellermann
2016-12-29 23:23:28 +01:00
parent 61a151c803
commit 4484411a77
6 changed files with 38 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ output_mixer_get_volume(const AudioOutput &ao)
} catch (const std::runtime_error &e) {
FormatError(e,
"Failed to read mixer for '%s'",
ao.name);
ao.GetName());
return -1;
}
}
@@ -88,7 +88,7 @@ output_mixer_set_volume(AudioOutput &ao, unsigned volume)
} catch (const std::runtime_error &e) {
FormatError(e,
"Failed to set mixer for '%s'",
ao.name);
ao.GetName());
return false;
}
}