summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-07 15:24:32 +0100
committerwm4 <wm4@nowhere>2014-03-09 00:19:31 +0100
commit41f2b26d11e81095a0d8d370480e0d2459208070 (patch)
tree1b665e392be25795b8fade6d0487609f73ac90d2 /player/core.h
parent74b7001500c0901b095986fafe7dca3e5c23c7f2 (diff)
downloadmpv-41f2b26d11e81095a0d8d370480e0d2459208070.tar.bz2
mpv-41f2b26d11e81095a0d8d370480e0d2459208070.tar.xz
audio/out: make ao struct opaque
We want to move the AO to its own thread. There's no technical reason for making the ao struct opaque to do this. But it helps us sleep at night, because we can control access to shared state better.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index fd9be5bcd4..5e60568c97 100644
--- a/player/core.h
+++ b/player/core.h
@@ -223,6 +223,11 @@ typedef struct MPContext {
struct mixer *mixer;
struct ao *ao;
+ double ao_pts;
+ struct mp_audio_buffer *ao_buffer; // queued audio; passed to ao_play() later
+ int ao_buffer_playable_samples; // part of the part of the buffer the AO
+ // hasn't accepted yet with play()
+
struct vo *video_out;
/* We're starting playback from scratch or after a seek. Show first