mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
ALSA backend: initial device selection
This commit is contained in:
parent
a72536dbb0
commit
99a484f193
2 changed files with 2 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ AlsaAudioBackend::enumerate_devices () const
|
|||
std::map<std::string, std::string> devices;
|
||||
get_alsa_audio_device_names(devices);
|
||||
for (std::map<std::string, std::string>::const_iterator i = devices.begin (); i != devices.end(); ++i) {
|
||||
if (_audio_device == "") _audio_device = i->first;
|
||||
_audio_device_status.push_back (DeviceStatus (i->first, true));
|
||||
}
|
||||
return _audio_device_status;
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ class AlsaAudioBackend : public AudioBackend {
|
|||
static std::vector<AudioBackend::DeviceStatus> _audio_device_status;
|
||||
static std::vector<AudioBackend::DeviceStatus> _midi_device_status;
|
||||
|
||||
std::string _audio_device;
|
||||
mutable std::string _audio_device;
|
||||
std::string _midi_driver_option;
|
||||
|
||||
/* audio device reservation */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue