|
@@ -28,7 +28,6 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
|
|
SettingsSection* audioSection = SettingsComponent::Get().getSection(SETTINGS_SECTION_AUDIO);
|
|
SettingsSection* audioSection = SettingsComponent::Get().getSection(SETTINGS_SECTION_AUDIO);
|
|
auto prevDescriptions = audioSection->descriptions();
|
|
auto prevDescriptions = audioSection->descriptions();
|
|
|
|
|
|
- bool advanced = true;
|
|
|
|
QString type = SettingsComponent::Get().value(SETTINGS_SECTION_AUDIO, "devicetype").toString();
|
|
QString type = SettingsComponent::Get().value(SETTINGS_SECTION_AUDIO, "devicetype").toString();
|
|
|
|
|
|
audioSection->setValueHidden("channels", false);
|
|
audioSection->setValueHidden("channels", false);
|
|
@@ -39,7 +38,7 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
|
|
}
|
|
}
|
|
else if (type == AUDIO_DEVICE_TYPE_HDMI)
|
|
else if (type == AUDIO_DEVICE_TYPE_HDMI)
|
|
{
|
|
{
|
|
- setHiddenPassthrough(PlayerComponent::AudioCodecsAll(), !advanced);
|
|
+ setHiddenPassthrough(PlayerComponent::AudioCodecsAll(), false);
|
|
}
|
|
}
|
|
else if (type == AUDIO_DEVICE_TYPE_SPDIF)
|
|
else if (type == AUDIO_DEVICE_TYPE_SPDIF)
|
|
{
|
|
{
|
|
@@ -48,8 +47,6 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
|
|
audioSection->setValueHidden("channels", true);
|
|
audioSection->setValueHidden("channels", true);
|
|
}
|
|
}
|
|
|
|
|
|
- audioSection->setValueHidden("exclusive", !advanced);
|
|
|
|
-
|
|
|
|
auto newDescriptions = audioSection->descriptions();
|
|
auto newDescriptions = audioSection->descriptions();
|
|
if (prevDescriptions != newDescriptions)
|
|
if (prevDescriptions != newDescriptions)
|
|
emit settingsUpdated(SETTINGS_SECTION_AUDIO, newDescriptions);
|
|
emit settingsUpdated(SETTINGS_SECTION_AUDIO, newDescriptions);
|