Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
015ae8d0
Commit
015ae8d0
authored
Mar 24, 2008
by
Dylan
Committed by
Jean-Baptiste Kempf
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hotkey to cycle through audio devices
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0aebd656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/control/hotkeys.c
modules/control/hotkeys.c
+11
-10
No files found.
modules/control/hotkeys.c
View file @
015ae8d0
...
@@ -516,7 +516,8 @@ static void Run( intf_thread_t *p_intf )
...
@@ -516,7 +516,8 @@ static void Run( intf_thread_t *p_intf )
{
{
continue
;
continue
;
}
}
for
(
i
=
1
;
i
<
i_count
;
i
)
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
{
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
{
{
...
@@ -528,29 +529,28 @@ static void Run( intf_thread_t *p_intf )
...
@@ -528,29 +529,28 @@ static void Run( intf_thread_t *p_intf )
msg_Warn
(
p_aout
,
msg_Warn
(
p_aout
,
"invalid current audio device, selecting 0"
);
"invalid current audio device, selecting 0"
);
var_Set
(
p_aout
,
"audio-device"
,
var_Set
(
p_aout
,
"audio-device"
,
list
.
p_list
->
p_values
[
1
]
);
list
.
p_list
->
p_values
[
0
]
);
i
=
1
;
i
=
0
;
}
}
else
if
(
i
==
i_count
-
1
)
else
if
(
i
==
i_count
-
1
)
{
{
var_Set
(
p_aout
,
"audio-device"
,
var_Set
(
p_aout
,
"audio-device"
,
list
.
p_list
->
p_values
[
0
]
);
list
.
p_list
->
p_values
[
0
]
);
i
=
0
;
i
=
0
;
}
}
else
else
{
{
var_Set
(
p_aout
,
"audio-device"
,
var_Set
(
p_aout
,
"audio-device"
,
list
.
p_list
->
p_values
[
i1
]
);
list
.
p_list
->
p_values
[
i
+
1
]
);
i
;
i
++
;
}
}
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
DEFAULT_CHAN
,
_
(
"Audio Device: %s"
),
_
(
"Audio Device: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
list2
.
p_list
->
p_values
[
i
].
psz_string
);
vlc_object_release
(
p_aout
);
}
}
else
if
(
i_action
==
ACTIONID_SUBTITLE_TRACK
)
else
if
(
i_action
==
ACTIONID_SUBTITLE_TRACK
)
{
{
...
@@ -857,6 +857,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -857,6 +857,7 @@ static void Run( intf_thread_t *p_intf )
{
{
osd_MenuActivate
(
VLC_OBJECT
(
p_intf
)
);
osd_MenuActivate
(
VLC_OBJECT
(
p_intf
)
);
}
}
}
}
if
(
p_vout
)
if
(
p_vout
)
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
...
...
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