diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-12 14:06:37 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-12 18:29:09 +0200 |
commit | 3d999246e446995cd0ae508303ceeaa2f11836ad (patch) | |
tree | ce4d6adb832ffb69e7a0ec5c6ba783c25d4ef49a /cfg-mplayer.h | |
parent | a66cce61ad0d62c9b4c24a9262b7182f865aca5b (diff) | |
download | mpv-3d999246e446995cd0ae508303ceeaa2f11836ad.tar.bz2 mpv-3d999246e446995cd0ae508303ceeaa2f11836ad.tar.xz |
audio: add -gapless-audio option
If the option is enabled and all audio has been buffered to the AO,
then the player will move to the next file without waiting for the
buffered audio to drain, while leaving the AO initialized. If the
playback of the next file starts quickly enough (before the AO buffer
empties) then it should continue writing audio to the same AO with no
gap in between.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 7413d171d4..95477edb33 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -98,9 +98,10 @@ const m_option_t mplayer_opts[]={ {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL}, {"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, {"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL}, + OPT_MAKE_FLAGS("gapless-audio", gapless_audio, 0), {"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, - // override audio buffer size (used only by -ao oss, anyway obsolete...) - {"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, + // override audio buffer size (used only by -ao oss/win32, obsolete) + OPT_INT("abs", ao_buffersize, 0), // -ao pcm options: {"aofile", "-aofile has been removed. Use -ao pcm:file=<filename> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |