diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-04-09 03:03:22 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-04-09 03:03:22 +0300 |
commit | 2a7c5a1365ad194a42e3f667f85828a152544857 (patch) | |
tree | 76c8ec2336e1f90f2e282bf130b876931fdb66cc /libao2/audio_out_internal.h | |
parent | 9ef15ac4fc28ecf85a497bc664246f227b40c135 (diff) | |
download | mpv-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 'libao2/audio_out_internal.h')
-rw-r--r-- | libao2/audio_out_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/audio_out_internal.h b/libao2/audio_out_internal.h index 504923b162..c093be6989 100644 --- a/libao2/audio_out_internal.h +++ b/libao2/audio_out_internal.h @@ -31,6 +31,8 @@ static float get_delay(void); static void audio_pause(void); static void audio_resume(void); +extern struct ao ao_data; + #define LIBAO_EXTERN(x) const ao_functions_t audio_out_##x =\ {\ &info,\ |