diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-01-21 09:28:07 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-03-20 14:51:32 +0200 |
commit | ec58e5a3848f82681839eaa15d2c6912d92e74ed (patch) | |
tree | 82bd6ea3411d9c2c5fcd18b9d4cb3f166db57ee3 /mplayer.c | |
parent | 7a699cea2849b2ef3f0a7a0702b74c33327ef8a9 (diff) |
options: move mixer.h options to struct
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1776,6 +1776,7 @@ void reinit_audio_chain(struct MPContext *mpctx) if (!(mpctx->initialized_flags & INITIALIZED_AO)) { mpctx->initialized_flags |= INITIALIZED_AO; mpctx->ao = ao_create(); + mpctx->ao->opts = opts; mpctx->ao->samplerate = force_srate; mpctx->ao->format = opts->audio_output_format; } @@ -1823,6 +1824,8 @@ void reinit_audio_chain(struct MPContext *mpctx) } mpctx->mixer.ao = ao; mpctx->mixer.volstep = volstep; + mpctx->mixer.softvol = opts->softvol; + mpctx->mixer.softvol_max = opts->softvol_max; mpctx->syncing_audio = true; return; |