mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-03-04 22:57:14 +00:00
Now with surround-sound checkbox support
This commit is contained in:
parent
c23b1a31be
commit
2be5040c24
1 changed files with 8 additions and 3 deletions
|
@ -22,7 +22,6 @@ ScrollView {
|
||||||
height: 400
|
height: 400
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
// TODO save the settings
|
|
||||||
id: basicSettingsGroupBox
|
id: basicSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
|
@ -148,7 +147,6 @@ ScrollView {
|
||||||
id: slider
|
id: slider
|
||||||
wheelEnabled: true
|
wheelEnabled: true
|
||||||
|
|
||||||
// TODO value should be loaded as the current value.
|
|
||||||
value: prefs.bitrateKbps
|
value: prefs.bitrateKbps
|
||||||
|
|
||||||
stepSize: 500
|
stepSize: 500
|
||||||
|
@ -177,6 +175,7 @@ ScrollView {
|
||||||
}
|
}
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
|
|
||||||
id: audioSettingsGroupBox
|
id: audioSettingsGroupBox
|
||||||
width: (parent.width - 20)
|
width: (parent.width - 20)
|
||||||
padding: 12
|
padding: 12
|
||||||
|
@ -191,7 +190,13 @@ ScrollView {
|
||||||
id: surroundSoundCheck
|
id: surroundSoundCheck
|
||||||
text: "<font color=\"white\">Enable 5.1 surround sound</font>"
|
text: "<font color=\"white\">Enable 5.1 surround sound</font>"
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
// TODO: make this actually do anything
|
|
||||||
|
// the backend actually supports auto/stereo/5.1. We'll expose stereo/5.1
|
||||||
|
checked: prefs.audioConfig === StreamingPreferences.AC_FORCE_SURROUND
|
||||||
|
|
||||||
|
onCheckedChanged: {
|
||||||
|
prefs.audioConfig = checked ? StreamingPreferences.AC_FORCE_SURROUND : StreamingPreferences.AC_FORCE_STEREO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue