Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
4d95ad5a
Commit
4d95ad5a
authored
Aug 16, 2010
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch automatically to the plugged audio device
parent
3a4a27e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
mainwindow.py
blink/mainwindow.py
+10
-0
No files found.
blink/mainwindow.py
View file @
4d95ad5a
...
...
@@ -551,6 +551,16 @@ class MainWindow(base_class, ui_class):
for
action
in
self
.
alert_device_menu
.
actions
():
self
.
alert_devices_group
.
removeAction
(
action
)
self
.
alert_device_menu
.
removeAction
(
action
)
# TODO replace the following code with a device switch choosing window
old_devices
=
set
(
notification
.
data
.
old_devices
)
new_devices
=
set
(
notification
.
data
.
new_devices
)
added_devices
=
new_devices
-
old_devices
if
added_devices
:
new_device
=
added_devices
.
pop
()
settings
=
SIPSimpleSettings
()
settings
.
audio
.
input_device
=
new_device
settings
.
audio
.
output_device
=
new_device
settings
.
save
()
self
.
load_audio_devices
()
def
_NH_CFGSettingsObjectDidChange
(
self
,
notification
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment