mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
audio_backend: Get name of standard device directly, without unnecessary enum StandardDeviceName
The StandardDeviceName enum was misleadingly *not* the name - the name only came from get_standard_device_name. Instead, simplify things, and just use two different trivial getters.
This commit is contained in:
parent
29e71b5c82
commit
a3ac3c7201
9 changed files with 53 additions and 62 deletions
|
|
@ -482,7 +482,7 @@ std::vector<std::string>
|
|||
PulseAudioBackend::enumerate_midi_options () const
|
||||
{
|
||||
std::vector<std::string> midi_options;
|
||||
midi_options.push_back (get_standard_device_name (DeviceNone));
|
||||
midi_options.push_back (get_none_device_name ());
|
||||
return midi_options;
|
||||
}
|
||||
|
||||
|
|
@ -501,7 +501,7 @@ PulseAudioBackend::set_midi_option (const std::string& opt)
|
|||
std::string
|
||||
PulseAudioBackend::midi_option () const
|
||||
{
|
||||
return get_standard_device_name (DeviceNone);
|
||||
return get_none_device_name ();
|
||||
}
|
||||
|
||||
/* External control app */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue