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
7a97dae2
Commit
7a97dae2
authored
Mar 22, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable name consistency across the file
parent
5beb50f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
src/audio_output/intf.c
src/audio_output/intf.c
+18
-18
No files found.
src/audio_output/intf.c
View file @
7a97dae2
...
@@ -147,25 +147,25 @@ int __aout_VolumeUp( vlc_object_t * p_object, int i_nb_steps,
...
@@ -147,25 +147,25 @@ int __aout_VolumeUp( vlc_object_t * p_object, int i_nb_steps,
{
{
aout_instance_t
*
p_aout
=
vlc_object_find
(
p_object
,
VLC_OBJECT_AOUT
,
aout_instance_t
*
p_aout
=
vlc_object_find
(
p_object
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
FIND_ANYWHERE
);
int
i_result
=
0
,
i
;
int
i_result
=
0
,
i
_volume
=
0
;
i
=
config_GetInt
(
p_object
,
"volume"
);
i
_volume
=
config_GetInt
(
p_object
,
"volume"
);
i
+=
AOUT_VOLUME_STEP
*
i_nb_steps
;
i
_volume
+=
AOUT_VOLUME_STEP
*
i_nb_steps
;
if
(
i
>
AOUT_VOLUME_MAX
)
if
(
i
_volume
>
AOUT_VOLUME_MAX
)
{
{
i
=
AOUT_VOLUME_MAX
;
i
_volume
=
AOUT_VOLUME_MAX
;
}
}
config_PutInt
(
p_object
,
"volume"
,
i
);
config_PutInt
(
p_object
,
"volume"
,
i
_volume
);
var_Create
(
p_object
->
p_libvlc
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_Create
(
p_object
->
p_libvlc
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_object
->
p_libvlc
,
"saved-volume"
,
i
);
var_SetInteger
(
p_object
->
p_libvlc
,
"saved-volume"
,
(
audio_volume_t
)
i_volume
);
if
(
pi_volume
!=
NULL
)
*
pi_volume
=
(
audio_volume_t
)
i
;
if
(
pi_volume
!=
NULL
)
*
pi_volume
=
(
audio_volume_t
)
i_volume
;
if
(
p_aout
==
NULL
)
return
0
;
if
(
p_aout
==
NULL
)
return
0
;
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
if
(
!
p_aout
->
mixer
.
b_error
)
if
(
!
p_aout
->
mixer
.
b_error
)
{
{
i_result
=
p_aout
->
output
.
pf_volume_set
(
p_aout
,
(
audio_volume_t
)
i
);
i_result
=
p_aout
->
output
.
pf_volume_set
(
p_aout
,
(
audio_volume_t
)
i_volume
);
}
}
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
...
@@ -184,25 +184,25 @@ int __aout_VolumeDown( vlc_object_t * p_object, int i_nb_steps,
...
@@ -184,25 +184,25 @@ int __aout_VolumeDown( vlc_object_t * p_object, int i_nb_steps,
{
{
aout_instance_t
*
p_aout
=
vlc_object_find
(
p_object
,
VLC_OBJECT_AOUT
,
aout_instance_t
*
p_aout
=
vlc_object_find
(
p_object
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
FIND_ANYWHERE
);
int
i_result
=
0
,
i
;
int
i_result
=
0
,
i
_volume
=
0
;
i
=
config_GetInt
(
p_object
,
"volume"
);
i
_volume
=
config_GetInt
(
p_object
,
"volume"
);
i
-=
AOUT_VOLUME_STEP
*
i_nb_steps
;
i
_volume
-=
AOUT_VOLUME_STEP
*
i_nb_steps
;
if
(
i
<
AOUT_VOLUME_MIN
)
if
(
i
_volume
<
AOUT_VOLUME_MIN
)
{
{
i
=
AOUT_VOLUME_MIN
;
i
_volume
=
AOUT_VOLUME_MIN
;
}
}
config_PutInt
(
p_object
,
"volume"
,
i
);
config_PutInt
(
p_object
,
"volume"
,
i
_volume
);
var_Create
(
p_object
->
p_libvlc
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_Create
(
p_object
->
p_libvlc
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_object
->
p_libvlc
,
"saved-volume"
,
i
);
var_SetInteger
(
p_object
->
p_libvlc
,
"saved-volume"
,
(
audio_volume_t
)
i_volume
);
if
(
pi_volume
!=
NULL
)
*
pi_volume
=
(
audio_volume_t
)
i
;
if
(
pi_volume
!=
NULL
)
*
pi_volume
=
(
audio_volume_t
)
i_volume
;
if
(
p_aout
==
NULL
)
return
0
;
if
(
p_aout
==
NULL
)
return
0
;
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
if
(
!
p_aout
->
mixer
.
b_error
)
if
(
!
p_aout
->
mixer
.
b_error
)
{
{
i_result
=
p_aout
->
output
.
pf_volume_set
(
p_aout
,
(
audio_volume_t
)
i
);
i_result
=
p_aout
->
output
.
pf_volume_set
(
p_aout
,
(
audio_volume_t
)
i_volume
);
}
}
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
...
...
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