Commit fcfd837f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1962] Load ALSA current device index for ringtone in configuration panel

parent 036489f3
......@@ -235,7 +235,7 @@ select_active_ringtone_audio_device()
// Select active ringtone device on server
devices = dbus_get_current_audio_devices_index();
currentDeviceIndex = atoi(devices[0]);
currentDeviceIndex = atoi(devices[2]);
DEBUG("audio device index for ringtone = %d", currentDeviceIndex);
model = gtk_combo_box_get_model(GTK_COMBO_BOX(ringtone));
......
......@@ -2439,11 +2439,13 @@ std::vector<std::string> ManagerImpl::getAudioInputDeviceList (void) {
std::vector<std::string> ManagerImpl::getCurrentAudioDevicesIndex () {
_debug ("Get current audio devices index");
std::vector<std::string> v;
std::stringstream ssi, sso;
std::stringstream ssi, sso, ssr;
sso << _audiodriver->getIndexOut();
v.push_back(sso.str());
ssi << _audiodriver->getIndexIn();
v.push_back(ssi.str());
ssr << _audiodriver->getIndexRing();
v.push_back(ssr.str());
return v;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment