summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-16 21:52:25 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-16 21:52:25 +0000
commitbd4a9d25bfc5526c1dc22cedad6e044a1579d769 (patch)
treeb169fe717762d85714d50f4af06dc0aed730d039 /libao2
parent19a3207d8db31c377656e6d8d8fb522c74831d03 (diff)
downloadmpv-bd4a9d25bfc5526c1dc22cedad6e044a1579d769.tar.bz2
mpv-bd4a9d25bfc5526c1dc22cedad6e044a1579d769.tar.xz
Rewrite audio EOF handling logic fixing some problems that could cause
truncation of output, set flag AOPLAY_FINAL_CHUNK in play call to tell ao there will be no more data beyond what's in current buffer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18738 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/audio_out.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index 095b020247..e5ae6b4e59 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -65,6 +65,8 @@ extern ao_functions_t* audio_out_drivers[];
#define AOCONTROL_SET_PLUGIN_DRIVER 6
#define AOCONTROL_SET_PLUGIN_LIST 7
+#define AOPLAY_FINAL_CHUNK 1
+
typedef struct ao_control_vol_s {
float left;
float right;