summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-04-09 03:03:22 +0300
committerUoti Urpala <uau@mplayer2.org>2011-04-09 03:03:22 +0300
commit2a7c5a1365ad194a42e3f667f85828a152544857 (patch)
tree76c8ec2336e1f90f2e282bf130b876931fdb66cc /mp_core.h
parent9ef15ac4fc28ecf85a497bc664246f227b40c135 (diff)
downloadmpv-2a7c5a1365ad194a42e3f667f85828a152544857.tar.bz2
mpv-2a7c5a1365ad194a42e3f667f85828a152544857.tar.xz
audio: change external AO interface to "ao_[method](ao, ...)"
Make the outside interface of audio output handling similar to the video output one. An AO object is first created, and then methods called with ao_[methodname](ao, args...). However internally libao2/ still holds all data in globals, and trying to create multiple simultaneous AO instances won't work.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mp_core.h b/mp_core.h
index bbb93bce48..733962fe0c 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -99,7 +99,6 @@ typedef struct MPContext {
unsigned int osd_visible;
int osd_function;
- const ao_functions_t *audio_out;
struct play_tree *playtree;
struct play_tree_iter *playtree_iter;
char *filename; // currently playing file
@@ -124,6 +123,7 @@ typedef struct MPContext {
struct demux_stream *d_video;
struct demux_stream *d_sub;
mixer_t mixer;
+ struct ao *ao;
struct vo *video_out;
/* We're starting playback from scratch or after a seek. Show first
@@ -228,7 +228,6 @@ extern int file_filter;
// These appear in options list
extern int forced_subs_only;
-struct ao_data;
void uninit_player(struct MPContext *mpctx, unsigned int mask);
void reinit_audio_chain(struct MPContext *mpctx);
void init_vo_spudec(struct MPContext *mpctx);