summaryrefslogtreecommitdiffstats
path: root/audio/out/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/internal.h')
-rw-r--r--audio/out/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/out/internal.h b/audio/out/internal.h
index 4214c6c1d6..cc3abb14f5 100644
--- a/audio/out/internal.h
+++ b/audio/out/internal.h
@@ -27,6 +27,11 @@
// Minimum buffer size in seconds.
#define MIN_BUFFER 0.2
+// 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
+
/* global data used by ao.c and ao drivers */
struct ao {
int samplerate;