MCPcopy Create free account
hub / github.com/MaartenBaert/ssr / LoadALSASources

Method LoadALSASources

src/GUI/PageInput.cpp:976–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974
975#if SSR_USE_ALSA
976void 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

Callers

nothing calls this directly

Calls 1

SourceClass · 0.50

Tested by

no test coverage detected