diff options
author | wm4 <wm4@nowhere> | 2014-06-08 23:54:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-09 01:20:53 +0200 |
commit | 3e2f16a89e625d9798217f39cc5be6211059acf9 (patch) | |
tree | ab74ca3b6974058904414bc4ea71cda212de88de /player/core.h | |
parent | da89af10768f75ceec9b9c0256649da6f4d843a2 (diff) | |
download | mpv-3e2f16a89e625d9798217f39cc5be6211059acf9.tar.bz2 mpv-3e2f16a89e625d9798217f39cc5be6211059acf9.tar.xz |
audio: add a "weak" gapless mode, and make it default
Basically, this allows gapless playback with similar files (including
the ordered chapter case), while still being robust in general.
The implementation is quite simplistic on purpose, in order to avoid
all the weird corner cases that can occur when creating the filter
chain. The consequence is that it might do not-gapless playback in
more cases when needed, but if that bothers you, you still can use
the normal gapless mode.
Just using "--gapless-audio" or "--gapless-audio=yes" selects the old
mode.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index 5f4789d267..e3d84f4ed9 100644 --- a/player/core.h +++ b/player/core.h @@ -218,6 +218,7 @@ typedef struct MPContext { struct mixer *mixer; struct ao *ao; double ao_pts; + struct mp_audio *ao_decoder_fmt; // for weak gapless audio check struct mp_audio_buffer *ao_buffer; // queued audio; passed to ao_play() later struct vo *video_out; |