Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
63d3a418
Commit
63d3a418
authored
May 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplifications.
parent
7f124704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
src/control/audio.c
src/control/audio.c
+2
-20
No files found.
src/control/audio.c
View file @
63d3a418
...
...
@@ -299,18 +299,8 @@ void libvlc_audio_output_set_device_type( libvlc_instance_t *p_instance,
aout_instance_t
*
p_aout
=
GetAOut
(
p_instance
,
p_e
);
if
(
p_aout
)
{
vlc_value_t
val
;
int
i_ret
=
-
1
;
val
.
i_int
=
(
int
)
device_type
;
i_ret
=
var_Set
(
p_aout
,
"audio-device"
,
val
);
if
(
i_ret
<
0
)
{
if
(
var_SetInteger
(
p_aout
,
"audio-device"
,
device_type
)
<
0
)
libvlc_exception_raise
(
p_e
,
"Failed setting audio device"
);
vlc_object_release
(
p_aout
);
return
;
}
vlc_object_release
(
p_aout
);
}
}
...
...
@@ -329,15 +319,7 @@ void libvlc_audio_toggle_mute( libvlc_instance_t *p_instance,
int
libvlc_audio_get_mute
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
)
{
/*
* If the volume level is 0, then the channel is muted
*/
audio_volume_t
i_volume
;
i_volume
=
libvlc_audio_get_volume
(
p_instance
,
p_e
);
if
(
i_volume
==
0
)
return
true
;
return
false
;
return
(
libvlc_audio_get_volume
(
p_instance
,
p_e
)
==
0
);
}
void
libvlc_audio_set_mute
(
libvlc_instance_t
*
p_instance
,
int
mute
,
...
...
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