Merge pull request #33 from OpenVR-Advanced-Settings/AudioDeviceChangedFix
Fixed audio devices swapping on device hw changes
This commit is contained in:
@@ -160,7 +160,7 @@ MyStackViewPage {
|
|||||||
Layout.maximumWidth: 850
|
Layout.maximumWidth: 850
|
||||||
Layout.minimumWidth: 850
|
Layout.minimumWidth: 850
|
||||||
Layout.preferredWidth: 850
|
Layout.preferredWidth: 850
|
||||||
onCurrentIndexChanged: {
|
onActivated: {
|
||||||
if (componentCompleted) {
|
if (componentCompleted) {
|
||||||
AudioTabController.setPlaybackDeviceIndex(currentIndex)
|
AudioTabController.setPlaybackDeviceIndex(currentIndex)
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ MyStackViewPage {
|
|||||||
Layout.maximumWidth: 850
|
Layout.maximumWidth: 850
|
||||||
Layout.minimumWidth: 850
|
Layout.minimumWidth: 850
|
||||||
Layout.preferredWidth: 850
|
Layout.preferredWidth: 850
|
||||||
onCurrentIndexChanged: {
|
onActivated: {
|
||||||
if (componentCompleted) {
|
if (componentCompleted) {
|
||||||
AudioTabController.setMirrorDeviceIndex(currentIndex - 1)
|
AudioTabController.setMirrorDeviceIndex(currentIndex - 1)
|
||||||
}
|
}
|
||||||
@@ -263,7 +263,7 @@ MyStackViewPage {
|
|||||||
Layout.maximumWidth: 850
|
Layout.maximumWidth: 850
|
||||||
Layout.minimumWidth: 850
|
Layout.minimumWidth: 850
|
||||||
Layout.preferredWidth: 850
|
Layout.preferredWidth: 850
|
||||||
onCurrentIndexChanged: {
|
onActivated: {
|
||||||
if (componentCompleted) {
|
if (componentCompleted) {
|
||||||
AudioTabController.setMicDeviceIndex(currentIndex)
|
AudioTabController.setMicDeviceIndex(currentIndex)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user