Hide autodetect option for audio configuration since it's broken on macOS and Linux (and to some extent, Windows)

This commit is contained in:
Cameron Gutman 2018-09-07 22:51:56 -07:00
parent 2c4f78133f
commit 77b767ae5b
2 changed files with 7 additions and 3 deletions

View file

@ -341,10 +341,14 @@ ScrollView {
textRole: "text"
model: ListModel {
id: audioListModel
ListElement {
// Detection of audio channels only works on Windows
// and even so, it's still unreliable because audio devices
// lie about how many channels they can support. Hide the
// option to autodetect until this is resolved.
/*ListElement {
text: "Autodetect"
val: StreamingPreferences.AC_AUTO
}
}*/
ListElement {
text: "Stereo"
val: StreamingPreferences.AC_FORCE_STEREO

View file

@ -37,7 +37,7 @@ void StreamingPreferences::reload()
playAudioOnHost = settings.value(SER_HOSTAUDIO, false).toBool();
multiController = settings.value(SER_MULTICONT, true).toBool();
audioConfig = static_cast<AudioConfig>(settings.value(SER_AUDIOCFG,
static_cast<int>(AudioConfig::AC_AUTO)).toInt());
static_cast<int>(AudioConfig::AC_FORCE_STEREO)).toInt());
videoCodecConfig = static_cast<VideoCodecConfig>(settings.value(SER_VIDEOCFG,
static_cast<int>(VideoCodecConfig::VCC_AUTO)).toInt());
videoDecoderSelection = static_cast<VideoDecoderSelection>(settings.value(SER_VIDEODEC,