Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2547dac3
Commit
2547dac3
authored
Nov 14, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/audio_output/intf.c: fixed a bug affecting audio volume initialization.
parent
c5817d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/audio_output/intf.c
src/audio_output/intf.c
+8
-4
No files found.
src/audio_output/intf.c
View file @
2547dac3
...
...
@@ -2,7 +2,7 @@
* intf.c : audio output API towards the interface modules
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.c,v 1.
6 2002/11/13 20:51:04 sam
Exp $
* $Id: intf.c,v 1.
7 2002/11/14 14:08:01 gbazin
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -213,19 +213,23 @@ int aout_VolumeDown( aout_instance_t * p_aout, int i_nb_steps,
/* Meant to be called by the output plug-in's Open(). */
void
aout_VolumeSoftInit
(
aout_instance_t
*
p_aout
)
{
audio_volume_
t
i_volume
;
in
t
i_volume
;
p_aout
->
output
.
pf_volume_infos
=
aout_VolumeSoftInfos
;
p_aout
->
output
.
pf_volume_get
=
aout_VolumeSoftGet
;
p_aout
->
output
.
pf_volume_set
=
aout_VolumeSoftSet
;
i_volume
=
config_GetInt
(
p_aout
,
"volume"
);
if
(
i_volume
==
-
1
)
if
(
i_volume
<
0
)
{
i_volume
=
AOUT_VOLUME_DEFAULT
;
}
else
if
(
i_volume
>
AOUT_VOLUME_MAX
)
{
i_volume
=
AOUT_VOLUME_MAX
;
}
aout_VolumeSoftSet
(
p_aout
,
i_volume
);
aout_VolumeSoftSet
(
p_aout
,
(
audio_volume_t
)
i_volume
);
}
/* Placeholder for pf_volume_infos(). */
...
...
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