Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
63c9e90d
Commit
63c9e90d
authored
Jul 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: set volume on playlist
parent
00f8067d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/misc/lua/libs/volume.c
modules/misc/lua/libs/volume.c
+4
-4
No files found.
modules/misc/lua/libs/volume.c
View file @
63c9e90d
...
...
@@ -51,7 +51,7 @@
*****************************************************************************/
static
int
vlclua_volume_set
(
lua_State
*
L
)
{
vlc_object_t
*
p_this
=
vlclua_get_this
(
L
);
playlist_t
*
p_this
=
vlclua_get_playlist_internal
(
L
);
int
i_volume
=
luaL_checkint
(
L
,
1
);
/* Do we need to check that i_volume is in the AOUT_VOLUME_MIN->MAX range?*/
return
vlclua_push_ret
(
L
,
aout_VolumeSet
(
p_this
,
i_volume
)
);
...
...
@@ -59,7 +59,7 @@ static int vlclua_volume_set( lua_State *L )
static
int
vlclua_volume_get
(
lua_State
*
L
)
{
vlc_object_t
*
p_this
=
vlclua_get_this
(
L
);
playlist_t
*
p_this
=
vlclua_get_playlist_internal
(
L
);
audio_volume_t
i_volume
;
if
(
aout_VolumeGet
(
p_this
,
&
i_volume
)
==
VLC_SUCCESS
)
lua_pushnumber
(
L
,
i_volume
);
...
...
@@ -71,7 +71,7 @@ static int vlclua_volume_get( lua_State *L )
static
int
vlclua_volume_up
(
lua_State
*
L
)
{
audio_volume_t
i_volume
;
aout_VolumeUp
(
vlclua_get_
this
(
L
),
aout_VolumeUp
(
vlclua_get_
playlist_internal
(
L
);
luaL_optint
(
L
,
1
,
1
),
&
i_volume
);
lua_pushnumber
(
L
,
i_volume
);
...
...
@@ -81,7 +81,7 @@ static int vlclua_volume_up( lua_State *L )
static
int
vlclua_volume_down
(
lua_State
*
L
)
{
audio_volume_t
i_volume
;
aout_VolumeDown
(
vlclua_get_
this
(
L
),
aout_VolumeDown
(
vlclua_get_
playlist_internal
(
L
),
luaL_optint
(
L
,
1
,
1
),
&
i_volume
);
lua_pushnumber
(
L
,
i_volume
);
...
...
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