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
78885615
Commit
78885615
authored
Nov 05, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New --volume option (untested, like usual :).
parent
e160ea97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
include/config.h.in
include/config.h.in
+3
-0
src/audio_output/audio_output.c
src/audio_output/audio_output.c
+2
-2
src/interface/main.c
src/interface/main.c
+8
-1
No files found.
include/config.h.in
View file @
78885615
...
...
@@ -271,6 +271,9 @@
#define VOLUME_STEP 128
#define VOLUME_MAX 1024
/* Environment variable for volume */
#define AOUT_VOLUME_VAR "vlc_volume"
/* Environment variable for output rate, and default value */
#define AOUT_RATE_VAR "vlc_audio_rate"
#define AOUT_RATE_DEFAULT 44100
...
...
src/audio_output/audio_output.c
View file @
78885615
...
...
@@ -2,7 +2,7 @@
* audio_output.c : audio output thread
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: audio_output.c,v 1.6
4 2001/06/12 18:16:49 stef
Exp $
* $Id: audio_output.c,v 1.6
5 2001/11/05 15:22:44 massiot
Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
*
...
...
@@ -169,7 +169,7 @@ aout_thread_t *aout_CreateThread( int *pi_status )
}
/* Initialize the volume level */
p_aout
->
i_volume
=
VOLUME_DEFAULT
;
p_aout
->
i_volume
=
main_GetIntVariable
(
AOUT_VOLUME_VAR
,
VOLUME_DEFAULT
)
;
p_aout
->
i_savedvolume
=
0
;
/* FIXME: maybe it would be cleaner to change SpawnThread prototype
...
...
src/interface/main.c
View file @
78885615
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: main.c,v 1.12
0 2001/10/22 12:02:17 sam
Exp $
* $Id: main.c,v 1.12
1 2001/11/05 15:22:44 massiot
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -107,6 +107,7 @@
#define OPT_STEREO 151
#define OPT_MONO 152
#define OPT_SPDIF 153
#define OPT_VOLUME 154
#define OPT_NOVIDEO 160
#define OPT_DISPLAY 161
...
...
@@ -176,6 +177,7 @@ static const struct option longopts[] =
{
"spdif"
,
0
,
0
,
OPT_SPDIF
},
{
"downmix"
,
1
,
0
,
OPT_DOWNMIX
},
{
"imdct"
,
1
,
0
,
OPT_IMDCT
},
{
"volume"
,
1
,
0
,
OPT_VOLUME
},
/* Video options */
{
"novideo"
,
0
,
0
,
OPT_NOVIDEO
},
...
...
@@ -694,6 +696,9 @@ static int GetConfiguration( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] )
case
OPT_IMDCT
:
/* --imdct */
main_PutPszVariable
(
IMDCT_METHOD_VAR
,
optarg
);
break
;
case
OPT_VOLUME
:
/* --volume */
main_PutIntVariable
(
AOUT_VOLUME_VAR
,
atoi
(
optarg
)
);
break
;
/* Video options */
case
OPT_NOVIDEO
:
/* --novideo */
...
...
@@ -871,6 +876,7 @@ static void Usage( int i_fashion )
"
\n
--spdif
\t
AC3 pass-through mode"
"
\n
--downmix <module>
\t
AC3 downmix method"
"
\n
--imdct <module>
\t
AC3 IMDCT method"
"
\n
--volume [0..1024]
\t
VLC output volume"
"
\n
"
"
\n
--novideo
\t
disable video"
"
\n
-V, --vout <module>
\t
video output method"
...
...
@@ -923,6 +929,7 @@ static void Usage( int i_fashion )
"
\n
"
AOUT_SPDIF_VAR
"={1|0}
\t
AC3 pass-through mode"
"
\n
"
DOWNMIX_METHOD_VAR
"=<method name>
\t
AC3 downmix method"
"
\n
"
IMDCT_METHOD_VAR
"=<method name>
\t
AC3 IMDCT method"
"
\n
"
AOUT_VOLUME_VAR
"=[0..1024]
\t
VLC output volume"
"
\n
"
AOUT_RATE_VAR
"=<rate>
\t
output rate"
);
/* Video parameters */
...
...
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