Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
78885615
Commit
78885615
authored
Nov 05, 2001
by
Christophe Massiot
Browse files
New --volume option (untested, like usual :).
parent
e160ea97
Changes
3
Hide whitespace changes
Inline
Side-by-side
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/1
0/22 12:02:17 sam
Exp $
* $Id: main.c,v 1.12
1
2001/1
1/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
Supports
Markdown
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