From fe298bc2a571405f38343eb9c6280f694db49ffa Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Apr 2014 22:45:49 +0200 Subject: audio: explicitly document audio EOF condition This should probably be an AO function, but since the playloop still has some strange stuff (using the buffered_audio variable instead of calling ao_get_delay() directly), just leave it and make it more explicit. --- audio/out/ao.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio/out/ao.h') diff --git a/audio/out/ao.h b/audio/out/ao.h index e462fcf4d5..056cdf7295 100644 --- a/audio/out/ao.h +++ b/audio/out/ao.h @@ -49,6 +49,11 @@ typedef struct ao_control_vol { float right; } ao_control_vol_t; +// If ao_get_delay() reaches this value after ao_play() was called with the +// AOPLAY_FINAL_CHUNK flag set, the playback core expects that the audio has +// all been played. +#define AO_EOF_DELAY 0.05 + struct ao; struct mpv_global; struct input_ctx; -- cgit v1.2.3