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
1c15f75e
Commit
1c15f75e
authored
Dec 18, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: trivial fixes
parent
ead6ddbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/audio_output/oss.c
modules/audio_output/oss.c
+5
-1
No files found.
modules/audio_output/oss.c
View file @
1c15f75e
...
...
@@ -223,7 +223,7 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
fmt
->
i_physical_channels
=
channels
;
}
VolumeSync
(
aout
)
:
VolumeSync
(
aout
)
;
sys
->
starting
=
true
;
sys
->
format
=
*
fmt
;
return
VLC_SUCCESS
;
...
...
@@ -332,6 +332,8 @@ static int VolumeSet (audio_output_t *aout, float vol)
{
aout_sys_t
*
sys
=
aout
->
sys
;
int
fd
=
sys
->
fd
;
if
(
fd
==
-
1
)
return
-
1
;
int
level
=
lroundf
(
vol
*
100
.
f
);
if
(
level
>
0xFF
)
...
...
@@ -353,6 +355,8 @@ static int MuteSet (audio_output_t *aout, bool mute)
{
aout_sys_t
*
sys
=
aout
->
sys
;
int
fd
=
sys
->
fd
;
if
(
fd
==
-
1
)
return
-
1
;
int
level
=
mute
?
0
:
(
sys
->
level
|
(
sys
->
level
<<
8
));
if
(
ioctl
(
fd
,
SNDCTL_DSP_SETPLAYVOL
,
&
level
)
<
0
)
...
...
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