| 974 | |
| 975 | #if SSR_USE_ALSA |
| 976 | void PageInput::LoadALSASources() { |
| 977 | m_alsa_sources = ALSAInput::GetSourceList(); |
| 978 | if(m_alsa_sources.empty()) { |
| 979 | m_alsa_sources.push_back(ALSAInput::Source("", "(no sources found)")); |
| 980 | } |
| 981 | m_combobox_alsa_source->clear(); |
| 982 | for(unsigned int i = 0; i < m_alsa_sources.size(); ++i) { |
| 983 | QString elided = m_combobox_alsa_source->fontMetrics().elidedText("\u200e[" + QString::fromStdString(m_alsa_sources[i].m_name) + "] " |
| 984 | + QString::fromStdString(m_alsa_sources[i].m_description), Qt::ElideMiddle, 400) + "\u200e"; |
| 985 | m_combobox_alsa_source->addItem(elided); |
| 986 | } |
| 987 | } |
| 988 | #endif |
| 989 | |
| 990 | #if SSR_USE_PULSEAUDIO |