From 41f2b26d11e81095a0d8d370480e0d2459208070 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 7 Mar 2014 15:24:32 +0100 Subject: 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. --- player/core.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player/core.h') 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 -- cgit v1.2.3