Commit ef92d8cc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't propose rtaudio backend if not available

parent 78608377
......@@ -730,7 +730,19 @@ void KdenliveSettingsDialog::initDevices()
}
m_configSdl.kcfg_audio_backend->addItem(i18n("SDL"), KdenliveSettings::sdlAudioBackend());
m_configSdl.kcfg_audio_backend->addItem(i18n("RtAudio"), "rtaudio");
if (KdenliveSettings::consumerslist().isEmpty()) {
Mlt::Properties *consumers = pCore->getMltRepository()->consumers();
QStringList consumersItemList;
consumersItemList.reserve(consumers->count());
for (int i = 0; i < consumers->count(); ++i) {
consumersItemList << consumers->get_name(i);
}
delete consumers;
KdenliveSettings::setConsumerslist(consumersItemList);
}
if (KdenliveSettings::consumerslist().contains("rtaudio")) {
m_configSdl.kcfg_audio_backend->addItem(i18n("RtAudio"), "rtaudio");
}
if (!KdenliveSettings::audiobackend().isEmpty()) {
int ix = m_configSdl.kcfg_audio_backend->findData(KdenliveSettings::audiobackend());
......
......@@ -478,6 +478,7 @@ void Wizard::checkMltComponents()
consumersItemList << consumers->get_name(i);
}
delete consumers;
KdenliveSettings::setConsumerslist(consumersItemList);
if (consumersItemList.contains(QStringLiteral("sdl2_audio"))) {
// MLT >= 6.6.0 and SDL2 module
KdenliveSettings::setSdlAudioBackend(QStringLiteral("sdl2_audio"));
......
......@@ -983,7 +983,10 @@
<label>Collapse audio mixer (only show master channel).</label>
<default>false</default>
</entry>
<entry name="consumerslist" type ="StringList">
<label>Detected MLT consumers.</label>
<default></default>
</entry>
<entry name="producerslist" type="StringList">
<label>List of available MLT producers.</label>
<default></default>
......
  • @mardelle RtAudio is still available. Selecting RtAudio it grey's out the drivers.
    grafik

    RtAudio shouldn't be available on Windows.

    Edited by Eugen Mohr
Markdown is supported
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