* audio_output.c : audio output thread
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: audio_output.c,v 1.64 2001/06/12 18:16:49 stef Exp $
+ * $Id: audio_output.c,v 1.65 2001/11/05 15:22:44 massiot Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
*
}
/* 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
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: main.c,v 1.120 2001/10/22 12:02:17 sam Exp $
+ * $Id: main.c,v 1.121 2001/11/05 15:22:44 massiot Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
#define OPT_STEREO 151
#define OPT_MONO 152
#define OPT_SPDIF 153
+#define OPT_VOLUME 154
#define OPT_NOVIDEO 160
#define OPT_DISPLAY 161
{ "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 },
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 */
"\n --spdif \tAC3 pass-through mode"
"\n --downmix <module> \tAC3 downmix method"
"\n --imdct <module> \tAC3 IMDCT method"
+ "\n --volume [0..1024] \tVLC output volume"
"\n"
"\n --novideo \tdisable video"
"\n -V, --vout <module> \tvideo output method"
"\n " AOUT_SPDIF_VAR "={1|0} \tAC3 pass-through mode"
"\n " DOWNMIX_METHOD_VAR "=<method name> \tAC3 downmix method"
"\n " IMDCT_METHOD_VAR "=<method name> \tAC3 IMDCT method"
+ "\n " AOUT_VOLUME_VAR "=[0..1024] \tVLC output volume"
"\n " AOUT_RATE_VAR "=<rate> \toutput rate" );
/* Video parameters */